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
TD21
Helper II
Helper II

Conditional Formatting Based on Other Measures

I would like to apply Conditional Formatting to a matrix column, [Completion_Rate], based on the values of 2 other measures.

 

If [Completion_Rate] is less than Measure 1, Red

If [Completion_Rate] is between Measure 1 and Measure 2, Yellow

If [Completion_Rate] is greater than Measure 2, Green

 

Is this possible?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@TD21 
Create a color measure like

Color Measure =switch(True(), [Completion_Rate] < [Measure 1], "Red",
[Completion_Rate] >= [Measure 1] && [Completion_Rate] <=[Measure 2], "Yellow",
[Completion_Rate] >=[Measure 2], "Green",
"black"
)

Use it under conditional formatting with "field" option

Refer: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@TD21 
Create a color measure like

Color Measure =switch(True(), [Completion_Rate] < [Measure 1], "Red",
[Completion_Rate] >= [Measure 1] && [Completion_Rate] <=[Measure 2], "Yellow",
[Completion_Rate] >=[Measure 2], "Green",
"black"
)

Use it under conditional formatting with "field" option

Refer: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

 

@amitchandak  Worked like a charm. Thanks. 😃

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.