Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi All
Hope someone can shed some light on this formula below. Long story short, it works well as long as all the items contains some type of value, as soon as one of the items is ZERO, this formula fails to calculate.
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 if someone can assist me with this query
Regards
Rodrigo
Solved! Go to Solution.
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
Thanks guys, this helps a lot.
Would you be able to assist me inserting an ISBLANK in this formula below?
PERFORMANCE WINS = [SUM OF WINS]/[SUM OF TARGET WINS]*100
I think that if we manage to insert a ISBLANK on this formula above, then I would be able to get the other formula to work..
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
Thanks Raj, I'm new to Power BI and you guys are legends
Your DAX is fine.
But are you sure, this is happening when one of the values is 0.
I tried the same and find below the result I got
Also "Fails to Calculate means" you mean it is returning NULL Values or is it giving an error?
If it is giving NULL Value, then your items should be having NULL as their value and not Zero.
Regards,
Thejeswar
Exactly. Your formula is straight forward and no issues with that. Any issues should be with your data and it may have NULL . Try using Isblank (value,0,value) if you have blank. Similarly handle NULL as well.
Thanks
Raj
@Thejeswar Thanks so much for the effort in analysing this query.
I believe the issue is when the data is NULL - see below and appreciate your thoughts on this
Any tool when it has NULLs in the calculation, returns NULL. Because NULLs cannot be equated to any value automatically
So in this case replace NULLs with Zero wherever needed.
That should solve the issue!!!
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
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?
User | Count |
---|---|
121 | |
69 | |
66 | |
56 | |
52 |
User | Count |
---|---|
181 | |
85 | |
67 | |
61 | |
53 |