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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
february
New Member

Matrix Conditional Formatting by Measure, Field Value

Good morning everyone, 
 
I am attempting to format each total in my matrix but instead of it applying the background to only those meeting the criteria, it applies the background to every date in the calendar. In short, I need to see if IV is less than NR, and if it does color the background red. Current measure/DAX below. 
 
My suspicion is the row context in the measure is not jiving with the way in which the matrix heirarchy is laid out (tiered locations.. state>city>zip). Thanks for your help!
 

 

CF =
VAR IV = SUM(IV[DayIV])/COUNTROWS('Calendar')
VAR NR = SUM(Budget[Revenue])/COUNTROWS('Calendar')
RETURN IF(IV<NR,"#DE6A73")

 

1 REPLY 1
Anonymous
Not applicable

Hi @february ,

 

What fields are applied in Matrix visual? Are there relationships between the three tables? 

Eyelyn9_0-1648429987239.png

 

Could you please provide me with more details about your table and your expected output to help us clarify your scenario?
Or share me with your pbix file after removing sensitive data.

How to Get Your Question Answered Quickly

How to provide sample data in the Power BI Forum

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.