COUNT_TABLE("VBAK")
is 200k.Using either of the below formulas continues to give me 200k Sales Orders. I have also attempted it with/without many different component filters:
COUNT(DISTINCT CASE WHEN
"_CEL_O2C_ACTIVITIES"."ACTIVITY_EN" IN ('Create Quotation','Create Sales Order Item')
THEN "VBAK"."MANDT" || "VBAK"."VBELN" ELSE NULL END)
or
COUNT (DISTINCT CASE
WHEN (PU_COUNT("VBAK","_CEL_O2C_ACTIVITIES"."USER_TYPE","_CEL_O2C_ACTIVITIES"."USER_TYPE" LIKE '%'
AND "_CEL_O2C_ACTIVITIES"."ACTIVITY_EN" IN ('Create Quotation','Create Sales Order Item'))
= PU_COUNT("VBAK","_CEL_O2C_ACTIVITIES"."USER_TYPE", "_CEL_O2C_ACTIVITIES"."ACTIVITY_EN"
IN ('Create Quotation','Create Sales Order Item')))
THEN "VBAK"."MANDT" || "VBAK"."VBELN"
ELSE NULL
END
)
You guys have been a tremendous help in the past, would love to see what I am missing or any other suggestions.