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
pracy
Employee
Employee

Data color is showing negative bar for 0.0 value.

We have 2 bar postive and negative. if value is 0.0, it is showing negative, Which is not correct. Please halp on this.

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @pracy 

 

I think the problem is the field value formating, try applying formatting directly on your measure instead.

 

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

7 REPLIES 7
jthomson
Solution Sage
Solution Sage

Are you sure the data involved is actually 0, and not some very small negative value that's rounding to zero based on your number of decimal points formatting?

Yes, I just checked. the value is -0.03. But if i want to show it at 1 decimal place. How I can resolve it. Data with data color

 

If you want to deny that -0.03 is, in fact, negative, then do some rounding in the actual measure itself so that the value you get out is actually zero, not just displaying as such - something like newmeasure = mround([existingmeasure],0.1) should do the trick

Mariusz
Community Champion
Community Champion

Hi @pracy 

 

If you want to show as 1 decimal place then please refer to my previous post

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Mariusz
Community Champion
Community Champion

Hi @pracy 

 

Can we see the screenshot of conditional formating settings 

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Hi @Mariusz 
Conditional formatting:

Capture2.PNG

And also whereI am showing it, screenshot:
Capture.PNG
Fied formatting:

Capture3.PNG

Thanks

Mariusz
Community Champion
Community Champion

Hi @pracy 

 

I think the problem is the field value formating, try applying formatting directly on your measure instead.

 

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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.

Top Solution Authors