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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Measure that returns conditional formatting based on rank and ID

Hello,

 

I have a measure which I have made to apply condtional formatting to a table. It ranks the months in the table and then applies the conditional formatting based on an if statement. 

Screenshot 2022-10-18 135545.png

 

 Screenshot 2022-10-18 135147.png

 

I am trying to add another if statment which will change one of the rows of formatting above based on ID as well, the second row  to anly be shaded to september. The ID i am using is the right one, but I can't figure out why it wont work.

 

Any help it greatly appreciated.

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , if this a measure you can use if max(Table[ID]) =10 in the condition

 

example

Measure =
Switch(true(),
max(Table[Column]) = "R1" , "Red" ,
max(Table[Column]) = "R2" , "Green" ,
max(Table[Column]) = "R3" , "Pink "
)

 

 

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
Anonymous
Not applicable

Hi @amitchandak,

 

Is this what you mean?Screenshot 2022-10-18 160508.png

 it still gives the same result unfortunately.

 

I tried using a switch instead of IF statement but got the same result.

Screenshot 2022-10-18 163401.png

 

thanks.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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