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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
leahschneider
Helper III
Helper III

Conditional Formatting in Table

I have a table in which I use conditional formatting on a column, darker for higher and lower numbers, white for middle numbers.  This column often has all 0s and in those cases, everything is colored even if I set the middle value to 0 and set that to white.  Is there any way I can get all 0s to be all white?

1 ACCEPTED SOLUTION

@leahschneider When only 0 is the value, then that it is your highest number and will assume the highest value (dynamic) color. The only other way around this would be to manually choose a high value that exceeds or is close to your maximum value in the data set so that the conditional format can compare your '0' - white value to a hard value (example: 1,000,000)

Then, when you only have '0', the conditional format understands what the upper and lower bounds of the colors should be. Without that, your example of dynamic high will always be the high color since the highest value is 0.00 in the result set.

 

Manually setting this upper bound will produce your expected result.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

9 REPLIES 9

@leahschneider Have you tried selecting the "diverging" checkbox? This allows you to choose 3 colors across the range. In this case, you could then choose white for your lowest values


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Yes.  I have it in diverging.  I have white selected for "0" or middle values.  I would like only the highest and lowest numbers that are above 0 and not blank highlighted.

@leahschneider What about having 0 and white as your low value? That is how I did it on a small sample and the output was what I expected since 0 was my lowest value.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

I need both low values and high values highlightedso I can't set low values to white.

@leahschneider I may just be missing the objective... but if I want high to low, and exclude 0's and make them all white, what I describe should work. This still gives you a high to low color range...

lowvalue.JPG


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

This is the issue that I'm dealing with:conditional formatting.PNG

 

When Column2 happens to have values that are not 0, it works fine.  However, in some cases, there are no non zero data and I would like it to be highlighted in white.

@leahschneider ok. I'm not aware of being able to add "except" conditions in conditional formatting.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

I don't want except conditions.  I want the number 0 to be white when I have conditional formatting that says that the number 0 is white.

@leahschneider When only 0 is the value, then that it is your highest number and will assume the highest value (dynamic) color. The only other way around this would be to manually choose a high value that exceeds or is close to your maximum value in the data set so that the conditional format can compare your '0' - white value to a hard value (example: 1,000,000)

Then, when you only have '0', the conditional format understands what the upper and lower bounds of the colors should be. Without that, your example of dynamic high will always be the high color since the highest value is 0.00 in the result set.

 

Manually setting this upper bound will produce your expected result.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.