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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Larry_Wang
Helper I
Helper I

Conditional formating

Hi to All,

 

I want to create a conditional formating for status ( See below picture for details ) and when I want to create rules it seems only can set for value or numbers in a range. Can any one give me some suggestions on how to do this? For example I want to set color for Production as green and Active for blue, etc. 

 

Larry_Wang_0-1625046712432.png

The format I want in Power BI

 

Larry_Wang_1-1625046883544.png

 

Thanks,

 

Larry

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Larry,

Create one calculated column from Status column:

conditional = switch('Table'[status],"Production",1,"active", 2,0)
And apply below conditional formatting on Status column:
mohityash_0-1625050859784.png

Desire Result:

mohityash_1-1625050895701.png

 



View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi Larry,

Create one calculated column from Status column:

conditional = switch('Table'[status],"Production",1,"active", 2,0)
And apply below conditional formatting on Status column:
mohityash_0-1625050859784.png

Desire Result:

mohityash_1-1625050895701.png

 



Hi Mohityash,
When I'm trying to use your suggested solution, after Switch, my desire table does not appear as an option, only the measures I've created. (see below)
Am I doing something wrong?  

 

Maryam_Pour_0-1628234089143.png

 

Hi @Anonymous ,

 

Thanks for the help on this issue and it works well for me😊

If Power BI allows us to create rule not only for numbers but also for texts, like in this case and it will be better.

 

Have a nice day!

 

Larry

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.