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