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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
bkxn226
Helper I
Helper I

Power Bi robust conditional formatting like Excel

I've been using Power BI quite a bit and really like it; however, the most frustrating part is the condtional formatting within tables.  I want to make sure I'm not missing somethign obvious or if there is a visual I can purcahse that can get the job done for me.  When I try to conditionally format in Power BI, it does Lowest/Highest and only lets you custom by Number, not Percentile.  Here is what a basic table looks like, and its clearly not robust to outliers.  

 

bkxn226_1-1609196002525.png

 

A similar table in Excel is robust to outliers since by default it uses a percentile as the middle value for the gradient.  It doesn't matter what I change the 100000 

pb1.PNG

 

 

For instance, instead of Lowest/Highest value, is there a way to have it automatically be robust to outliers, like it is in Excel.  Again, the way it acheives this is by using percentiles, specifically having the midpoint as percentile of 50%.  

 

bkxn226_0-1609195851194.png

 

I understand you can potentially write your measure but is there any obvious option that I am missing?  And if you can write a measure is there a trick to make it scalable?

 

How is something so basic not available in Power BI?  Is there a custom table visual I can even buy that can do this?   Any help would be much appreciated!

 

6 REPLIES 6
parry2k
Super User
Super User

@bkxn226  I don't think  @Anonymous  understood your original question and no reason to provide that reply if I already provided the same solution. Simple answer, there is no percentile out of the box but you can do your own measure to control the color. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi  @bkxn226  ,

Here are the steps you can follow:

You can customize the value to change the color

1. Visualizations – Conditional formatting – Background color

v-yangliu-msft_0-1609319540223.png

2. Select the Color scale – Based on field selected field in Format by – check Doverging, when the divergence is turned on, an additional color selector, in which you can customize the value and color according to your own data

v-yangliu-msft_1-1609319540228.jpeg

3. Result.

2020.12.30.00.png

 

You can downloaded PBIX file from here.

 

This is related content, you can check this link:

https://docs.microsoft.com/en-us/power-bi/visuals/service-tips-and-tricks-for-color-formatting

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The problem is that you are saying the center is 0 not 50% percentile.   In excel and other bi tools, you can do it by percentile (in fact, it is even the default).  Is there really no way to do it in power bi?

parry2k
Super User
Super User

@bkxn226, not I'm aware of but you can built that percentile logic in a measure and create your own color and then use that in conditional formatting. Surely it is extra work, and I'm very hopeful this will come in Power BI at some point in time. Good luck!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@bkxn226 it doesn't have scaling based on percentile, either write your own measure or turn the diverging option on scaling. 

 

I would recommend adding this as an idea on the ideas forum, if it already exists, upvote for it.

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

ugh, how is something as basic as this and implemented in Excel an idea rather then default?  is there something you know of I can buy?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors