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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors