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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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]) )

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]) )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.