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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
delish_hins
Regular Visitor

Format String Issues with Negative Values

I created a related post earlier today but I wanted to break this issue out separately. I am using the format string "#,#,;(#,#);" to display my values in thousands. The issue I have is if the value is between -1 and -999 then the format string returns empty parens "()" which looks silly but is also confused for 0/zero, which further leads to inconsistencies in formatting since zero is displayed as blank.
delish_hins_0-1737734014188.png

Is there a way to suppress these empty parens?

 

4 REPLIES 4
suparnababu8
Super User
Super User

Hi @delish_hins 

 

On top of soultion provided by Greg Deckler, you give a try solve your issue. Create a calculated column that formats the values based on your condition. 

Salesformattedvalu = 
IF(
    [Sales] < -1 && [Sales] > -999,
    "(" & FORMAT([Sales], "#,#") & ")",
    FORMAT([Sales], "#,#;(#,#);0;"))

 

Let me know if it works!

 

Thanks!

Thanks. Something similar to this is where I landed for my original issue but I still have some empty parens even though my measure is supposed to return blank when when the value is between -999 and -1.

delish_hins_0-1737985860409.png

 

Greg_Deckler
Community Champion
Community Champion

@delish_hins I suppose you could conditionally format that if the value is between -1 and -999 that the font color is white.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I'm doing something similar in other cases but in this particular matrix I'm using a single measure and a calculation group that is returning both $ and % and the conditional formatting functionality doesn't appear to be capable of handling both unfortunately.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.