Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bdehning
Post Prodigy
Post Prodigy

Show Zero and not blank in Matrix Table

This should be easy I thought.

Table no Zero.PNG

 I have the above table but I want to show a Zero instead of blanks.  Claim Type is Row, Year is Column and Values is Total Count?    They are all columns from a table.  

 

What do I need to do to show Zero where there are blanks?

3 REPLIES 3
Greg_Deckler
Super User
Super User

@bdehning Easiest thing would be to create a measure like:

COUNTROWS('Table')+0


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I either did not do it right or it did not work.

 

I am counting the occurences of Claim Type.  If some of the Claim Types did not occur during the year, it produces the blank by the use of counting a total column. 

@bdehning Could you post your formula? Kind of hard to be specific without it but basically, usually if you just take whatever you are returning and + 0 then you get 0 back for anything that is 0 or BLANK.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.