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
Zakaria_1980
Post Patron
Post Patron

Conditional formatting issue

dears,

 

how can I change the colors for this column in my report whenever it changes from one to another (in the below case very Urgent in color1 and Urgent in Color 2 and whenevr i have another status it will be in another color that i'll choose myself for them all)?

 

Zakaria_1980_0-1643195737376.png

thx

1 ACCEPTED SOLUTION
SivaMani
Resident Rockstar
Resident Rockstar

@Zakaria_1980 , a Better way to do it is to create a measure 'Status Color' and add the coloring logic. Refer below, 

  • Create measure

Status Color = SWITCH(SELECTEDVALUE(Orders[Ship Mode]),"Standard Class", "Red","Same Day","Green","Yellow")Add this measure to conditional formating

  • Add this measure to Conditional Formating  
SivaMani_3-1643201484778.png

 

SivaMani_2-1643201415145.png

 

 

View solution in original post

1 REPLY 1
SivaMani
Resident Rockstar
Resident Rockstar

@Zakaria_1980 , a Better way to do it is to create a measure 'Status Color' and add the coloring logic. Refer below, 

  • Create measure

Status Color = SWITCH(SELECTEDVALUE(Orders[Ship Mode]),"Standard Class", "Red","Same Day","Green","Yellow")Add this measure to conditional formating

  • Add this measure to Conditional Formating  
SivaMani_3-1643201484778.png

 

SivaMani_2-1643201415145.png

 

 

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.