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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors