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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ReubenS
Advocate I
Advocate I

Matrix to show "0" instead of blank values for a count

I have a matrix with a generic rows of distinct values, in the example I have used colors and then the field created month for the coloumns. I am trying to show in a matrix when there is an empty field I would like it to show "0" ,as its a count instead of nothing.

 

I have tried :

= COALESCE(COUNT([Field1]), 0)
 measure = IF(ISBLANK(Count[Field1]),0,Count[Field])
 
measure = Count([Field1]) +0

 

ReubenS_0-1674642265259.png

 

4 REPLIES 4
ReubenS
Advocate I
Advocate I

I have attempted all sugestions but none have worked. Ill leave this thread open if I find a solution I will post about it.

LQuedas
Resolver II
Resolver II

Hey @ReubenS 

 

you can try this one:

 

=

 Var _TOTAL= COUNT([Field1])

 

RETURN IF(_TOTAL = blank(),0,_TOTAL)

 

Cheers, LQ

Thennarasu_R
Responsive Resident
Responsive Resident

Hi @ReubenS 
try this measure,
Measure=if(calculate(count(Field))=Blank(),0,calculate(count(Field))

Thanks and Regards
Thennarasu

amitchandak
Super User
Super User

@ReubenS , This works best when the color is coming from a separate dimension

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors