Forum Discussion
Dax formula - dealing with zero amounts
- Anonymous8 years ago
Here it is...
PERFORMANCE WINS =IF( ISBLANK([SUM OF WINS]),0,[SUM OF WINS])/ IF( ISBLANK([SUM OF TARGET WINS]),0,[SUM OF TARGET WINS]) *100
I have replaced the blank by 0, however you can change with your desired value.
Thanks
Raj
Hi All
Just wondering whether someone can help me.
I have this formula below which divides de KPIs by 5, but whenever one of the KPI is empty or have ZERO as the value, this formula fails to calculate properly.
PERFORMANCE KPI % = (
'KPI_DATA - FROM EXCEL EXTRACT'[PERFORMANCE ACC REVIEWS] +
'KPI_DATA - FROM EXCEL EXTRACT'[PERFORMANCE FEEDBACK/MI] +
'KPI_DATA - FROM EXCEL EXTRACT'[PERFORMANCE WINS] +
'KPI_DATA - FROM EXCEL EXTRACT'[PERFORMANCE QA] +
'KPI_DATA - FROM EXCEL EXTRACT'[PERFORMANCE MI] +
'KPI_DATA - FROM EXCEL EXTRACT'[PERFORMANCE STAKEHOLDER ENGAGEMENT])/5
Appreciate any kind of assistance
Regards
Rodrigo
- Stachu8 years ago
Community Champion
I cannot replicate the issue - for me 0/null values are aggregated properly in the calculated column
are you sure there are no text values in the empty cells?