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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.