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
A_a_a
Helper III
Helper III

Matrix table - conditional formating comparing two measures

Hi All,

 

I have Matrix table with list of places by week.

 

A_a_a_0-1666876693109.png

 

Values are based on one measure.

 

Now I would like to highlight the cells that are lower than data ("Data" is measure too):

A_a_a_1-1666876957412.png

 

My conditional measure:

 

Conditional Formating =
SWITCH(

TRUE(),

[Measure 1] < [Data], "red",
""
)
 
But the output seems to be correct only for the first column not for all... what kind of filter or condition shall I add to have the output by week.
A_a_a_2-1666877379115.png

 

Please help.

Thanks,

G.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@A_a_a , Based on what I got.

The data measure should ignore week filter.

 

it should like

new data = calculate([Data], removefilters(Table[Week]) )

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

View solution in original post

2 REPLIES 2
A_a_a
Helper III
Helper III

Hi,

it is working now 🙂

Thank you for your help!

 

G.

amitchandak
Super User
Super User

@A_a_a , Based on what I got.

The data measure should ignore week filter.

 

it should like

new data = calculate([Data], removefilters(Table[Week]) )

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
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.