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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
cmajewski
Frequent Visitor

Conditional Formatting Quesiton

I noticed in the May 2018 Update of Power BI they changed conditional formatting and added some powerful new features.

I should get this menu:

PBIMenu1.png

 

But instead I get this:

PBIMenu2.png

 

I am running January 2019 and this came out in May 2018 any suggestions as to why I am not seeing the color scales?? I want to color different cells in a column based on the text not a number.

 

Kind regards,

1 ACCEPTED SOLUTION

You could just creat your column with the actual color name/value that you want, then use the "Field value" option
 
StatusColor = SWITCH([Status],
"Started", "Blue",
"Completed","Green",
"Pending","Yellow"
)
 
201905 conditional color.png
 
 

View solution in original post

5 REPLIES 5
d_gosbell
Super User
Super User


@cmajewski wrote:

I am running January 2019 and this came out in May 2018 any suggestions as to why I am not seeing the color scales?? I want to color different cells in a column based on the text not a number.

This option is still there, they've just renamed the menu because they added more options than just scales. If you click on the background color option there is a "Format by" setting which now has options for Color Scale, Rule and Field value.

Many thanks for your reply I see what you are saying. It must be because I am trying to apply the colors to a different visualization than what's in their example that it still looks different when you go into the menu.


What I thought I would be able to do is apply different colors to a column in a table based off the text. For example, I have a ‘Status’ column and I wanted to color the different words so ‘Completed’ would be green, ‘Pending’ would be orange, etc.…


I am accomplishing this now with a nested IF, however I have more than 4 different statuses so it’s not working for all the colors I need:

 

Column = IF([Status]="On Plan",1,IF([Status]="Started",2,IF([Status]="Completed",3,IF([Status]="Pending",4,0))))

 

Any suggestions?

You could just creat your column with the actual color name/value that you want, then use the "Field value" option
 
StatusColor = SWITCH([Status],
"Started", "Blue",
"Completed","Green",
"Pending","Yellow"
)
 
201905 conditional color.png
 
 

Many Thanks!!

@cmajewski ,

 

By the way, you may help accept solution. Your contribution is highly appreciated.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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