@urszula.jesse If I understand correctly, you want to count on header level how many Items have change activities?
If this is the case then a PU function is the correct way to go. Something like PU_COUNT(EKKO, EKPO.EBELN, ...) classifies one order based on the condition you want. After that you can think about using a CASE WHEN to get the SUM of all these orders. So something like this should work SUM(CASE WHEN PU_COUNT(EKKO,EKPO.EBELN,...) > 0 THEN 1 ELSE 0 END)
Hope this helps
Best,
Kevin
Hi Urszula,
To get the ratio, add as dimension EKKO.LIFNR and the KPI as a ratio between your POs with certain activity / total POs
KPI formula
SUM(
CASE WHEN PU_COUNT(EKKO, MATCH_ACTIVITIES(NODE_ANY['PO deleted'] )=1) > 0 THEN 1 ELSE 0 END
)
/
COUNT_TABLE(EKKO)
Best,
Gabriel
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.