Forum Discussion
kkane
2 years agoRegular Visitor
DAX KPI % Measure
Hi all, I have a wait times dataset and am trying to create a measure that will show the % of compliance to the wait time target. Out of all the patients who had a first appointment (clock s...
- Anonymous2 years ago
HI kkane,
I think the calculation logic is calculate the condition row count with all rows to get percentage instead of total elapsed days divide with row count. For this scenario, you can try to use the following measure formula if helps:
% KPI 1A = CALCULATE ( DIVIDE ( CALCULATE ( SUM ( 'vw_PBI_WaitingTimes'[Number] ), 'vw_PBI_WaitingTimes'[Elapsed Working Days] <= 20 ), SUM ( 'vw_PBI_WaitingTimes'[Number] ), -1 ), ALLSELECTED ( 'vw_PBI_WaitingTimes' ) )Regards,
Xiaoxin Sheng
Anonymous
2 years agoNot applicable
HI kkane,
I think the calculation logic is calculate the condition row count with all rows to get percentage instead of total elapsed days divide with row count. For this scenario, you can try to use the following measure formula if helps:
% KPI 1A =
CALCULATE (
DIVIDE (
CALCULATE (
SUM ( 'vw_PBI_WaitingTimes'[Number] ),
'vw_PBI_WaitingTimes'[Elapsed Working Days] <= 20
),
SUM ( 'vw_PBI_WaitingTimes'[Number] ),
-1
),
ALLSELECTED ( 'vw_PBI_WaitingTimes' )
)
Regards,
Xiaoxin Sheng