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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
zahlenschubser
Helper IV
Helper IV

Conditional Formatting for zero values in a matrix visual with varying background colors

I am trying to set up conditional formatting so I don't see zeroes in my matrix visual, but if I for example format zeroes as white the grey lines will still show them.

 

zahlenschubser_0-1701764710167.png

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @zahlenschubser 
There is 2 options to solve the issue:

1. don't use an alternate background for rows, use horizontal grid instead :

Ritaf1983_0-1701766370432.pngRitaf1983_1-1701766427915.pngRitaf1983_2-1701766472845.png

2. instead of conditional formatting , "format" 0 as blank from dax :
fixed_measure = if ([measure ] = 0, "",[measure])

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @zahlenschubser 
There is 2 options to solve the issue:

1. don't use an alternate background for rows, use horizontal grid instead :

Ritaf1983_0-1701766370432.pngRitaf1983_1-1701766427915.pngRitaf1983_2-1701766472845.png

2. instead of conditional formatting , "format" 0 as blank from dax :
fixed_measure = if ([measure ] = 0, "",[measure])

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

I feel so stupid right now ... I didn't even think of summing up the amounts by measure, I just let PBI do it in the matrix.

 

Solved, thanks!

Idrissshatila
Super User
Super User

Hello @zahlenschubser ,

 

try to add an if statement to the measure that says if the field = 0 then Blank

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.