Forum Discussion
datanau001
Helper III
3 years agoMeasure for KPI indicator
Dear all, I'm trying to create a KPI indicator with below dax code: KPI Indicator Measure = IF ( SUM( 'V_SR_STATUS_LINES_SEC'[Total Audit Time Hrs] ) < SUM( 'V_SR_STATUS_LINES_SEC'[AMT SL...
Greg_Deckler
Community Champion
3 years agodatanau001 Try this:
KPI Indicator Measure =
SWITCH(TRUE(),
SUM('V_SR_STATUS_LINES_SEC'[Total Audit Time Hrs]) = BLANK(),BLANK(),
SUM( 'V_SR_STATUS_LINES_SEC'[Total Audit Time Hrs] ) < SUM( 'V_SR_STATUS_LINES_SEC'[AMT SLA] ),"KPI Met",
"KPI Not Met"
)datanau001
Helper III
3 years agoGreg_Deckler Hello Greg, thank you for your answer.
It worked partially. See below, now in some cases the comparisson is not correct.
In first two lines, it should be KPI Not met
Regards
Marcelo