Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi Experts
I cannot see my error here, its a simple DAX formula.
LocationCount = CALCULATE(COUNTA(Case_Data[Location])) - works fine
When i add the if function to show empty cell as 0 as opposed to blank i get 0 in the matric table???
LocationCount = IF(CALCULATE(COUNTA(Case_Data[Location]))=BLANK(),0,(CALCULATE(COUNTA(Case_Data[Location]))))
Solved! Go to Solution.
@Anonymous,
You may take a look at the following post.
https://community.powerbi.com/t5/Desktop/How-to-show-zeroes-in-a-matrix-0-is-not-working/td-p/325999
@Anonymous,
You may take a look at the following post.
https://community.powerbi.com/t5/Desktop/How-to-show-zeroes-in-a-matrix-0-is-not-working/td-p/325999
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 42 | |
| 40 | |
| 39 |