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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  Worked like a charm. Thanks. 😃

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.