cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zakaria_1980
Helper V
Helper V

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
Super User
Super User

@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
Super User
Super User

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors