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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
zyeet
Frequent Visitor

Conditional Formatting for values not equal to 0 is not working properly

I am trying to highlight the Discrepancies in my data where the values not being equal to 0 should be highlighted red. But the problem is that some rows that have the value 0, are also being highlighted.

The rule I wrote is:

zyeet_1-1703232227907.png

 

 

The Conditional formatting shows up like this:

 

zyeet_0-1703232197069.png

 

 

5 REPLIES 5
WranglerPro_BDT
New Member

Found a workaround and hope this is helpful: 

Pick a color for zero, then set the same colour for a range that accomodates rounding errors: MIN (-0.01) and MAX (0.01) 

 

Then pick the colour you want for reconciling items and start from the boundaries set for zero so it looks like this:

 

WranglerPro_BDT_1-1716605134040.png

 

 

Anonymous
Not applicable

Hi @zyeet 

Based on the information you provided me, I think the problem may be in -1e+3!, you can change it to a numeric type like -1000 so that there is no problem associated with it.

  1. Turn -1e+3! into -1000.

vyilongmsft_0-1703473402340.png     2. All 0.00 are become the same color.

vyilongmsft_1-1703473546682.png

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards

Yilong Zhou

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

I have tried your solution but not all my 0's are being formatted green:

zyeet_0-1703745785441.png

 

You can check the pbix file here:

Draft Comparison Report.pbix

Anonymous
Not applicable

Hi, @zyeet

Based on the information you have provided, Here are my answers to your questions.

I opened your pbix file and found that there were indeed some 0.00s that didn't meet the green condition, so I rewrote a Color's Measure that returns green when the value of Variance is not equal to 0, and what I got was also that there were a lot of rows of 0.00s that turned green, which indicates that these values are not equal to 0.

vyilongmsft_0-1705913603829.png

 

 

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

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

Jihwan_Kim
Super User
Super User

Hi, I am not sure how your semantic model looks like, but please try using ROUND DAX function whether it suits your requirement.

 

ROUND function (DAX) - DAX | Microsoft Learn

 



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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