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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ml0911
Regular Visitor

Matrix Row Conditional Formatting

I am trying to format a matrix so that the color of the row is tied to the department name. However, it is not applying the color to any values that are 0. See below:

ml0911_0-1774965837036.png

I would like the entire row highlighted in the specified colors, even fields that are 0. I have one measure for specifying the row color and a second measure that forces blank values to be 0 because PowerBI was previously populating as blanks. See both below.

ml0911_1-1774965930970.png

ml0911_2-1774965950475.png

 

 

23 REPLIES 23

Hi @ml0911 ,

 

The fact table is where you have all the information for you calculations in this case the Export Table and  Dimension tables describe business entities.

 

Check this link about this concepts (https://learn.microsoft.com/en-us/power-bi/guidance/star-schema#star-schema-overview)

 

Concerning the relationship are they done with a one to many relationship?

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Thank you for the explanation. That makes sense. It is a "many to many" relationship. I cannot share the data as it is confidential. Do you know of a workaround for this issue?

MFelix
Super User
Super User

Hi @ml0911 ,

 

Is the Group Names your Fact table or is it a dimension table connected to your fact? This usually happens because the result of the query is an empty value and does not shows in the "virtual table" that is part of visual.

 

In the examples below I have the same matrix however one is with the values from the fact and the other is the values from the dimension:

 

MFelix_1-1774970146103.png


What happens is altough you have a value of 0 in the visualization in this case the value Brazil does not exist in the fact table so no result is given for the condittional formatting.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.