Hello Everyone,
We have some KPIs which are the result of a Criteria over the population. I.e cases that follows directly from process A -> B DIVIDED all the cases that went through A
There are cases where the numerator and denominator are Zero , Celonis manage 0/0 as NULL which is correct, but for my KPI I should present either 0% or No Activities instead of -
Can you please advice the effective way to manipulate the output of the KPI to manage the Nulls?
Regards,
Example:
SUM(
CASE WHEN BKPF.AWTYP IN (BKPF, BKPFF, BKPFI, IBKPF, TRAVL)
AND BSEG.BSCHL = 31
AND PROCESS EQUALS Invoice posted TO Pay Invoice
THEN BSEG.WRBTR_CONVERTED
ELSE
0.0
END)
/
SUM ( CASE WHEN MATCH_ACTIVITIES(ENDING[Pay Invoice] ) = 1
AND BSEG.BSCHL = 31
AND BKPF.AWTYP IN (BKPF, BKPFF, BKPFI, IBKPF, TRAVL)
THEN BSEG.WRBTR_CONVERTED
ELSE
0.0
END)