cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
A_a_a
Frequent Visitor

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
Frequent Visitor

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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.