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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.