cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
A_a_a
Helper I
Helper I

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 I
Helper I

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
T-Shirt Design Challenge 2023

Power BI T-Shirt Design Challenge 2023

Submit your creative T-shirt design ideas starting March 7 through March 21, 2023.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors