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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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