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

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

Reply
AndrewPF
Helper V
Helper V

adding zero values to a matrix heatmap

I have created a heatmap from a matrix: 

 

AndrewPF_0-1676044926742.png

 

but I want the squares without values to have zeroes. 

 

Is there any way of accomplishing this, other than adding "zero" rows into my test data? 

4 REPLIES 4
AndrewPF
Helper V
Helper V

I have created the measure exactly as described, but it still doesn't work.  I don't understand how it can populate the cells where there are no rows in the original source data. 

AndrewPF
Helper V
Helper V

I don't think I understand.  I don't have any rows in my data where, for example, Impact = "4 - Likely" and Likelihood = "4 - Severe".  The values are just COUNT = 1 on each row in the source data and I am summing them in the matrix with Impact as the X-axis and Likelihood as the Y-axis.  Creating a new [COUNT] + 0 measure won't create any values where there are no existing values. 

@AndrewPF Create a measure:

 

Measure = SUM('Table'[COUNT]) + 0

For the blank areas, the sum will return BLANK and then when 0 is added, you get 0. Adding zero to sums that return numbers (not blank) does not change the number.

 



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Community Champion
Community Champion

@AndrewPF Take your measure and add +0 to the result that is returned.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.