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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ykaja
Frequent Visitor

Custom formatting shows empty parenthesis

A measure is defined as difference of two columns.

 

Custom formatting is defined as #,##;(#,##);"0" . This is mainly to display negative numbers in brackets. For difference of 0, it shows empty brackets(as shown below) for some values instead of 0.

 

ykaja_0-1699479784326.png

 

Any thoughts on fixing this please? Thanks

 

2 ACCEPTED SOLUTIONS

Can you try adding ROUND ( ... , 0 ) around the measure you're applying the custom format to? If that fixes the issue, then your problem very likely is that they are small negative values (possibly floating point errors), not actual zeros.

View solution in original post

Thank you @AlexisOlson. ROUND function fixed this issue.

View solution in original post

6 REPLIES 6
AlexisOlson
Super User
Super User

I think in custom formatting notation, a # drops away if it's zero and I'm guessing the values are small negative numbers that round to zero but aren't actually zero (so the zero formatting doesn't apply).

You could try #,##0;(#,##0);"0", which I'd expect to return (0) instead of () or you could try rounding into the measure.

@AlexisOlson The values are whole numbers. So the difference should show '0' as both are same numbers.

Already tried this #,##0;(#,##0);"0" and it returns (0) instead of blank parenthesis.

Can you try adding ROUND ( ... , 0 ) around the measure you're applying the custom format to? If that fixes the issue, then your problem very likely is that they are small negative values (possibly floating point errors), not actual zeros.

Thank you @AlexisOlson. ROUND function fixed this issue.

AllisonKennedy
Super User
Super User

Try: 

#,##;(#,##);0

 

without the quotes on the zero.

 

AllisonKennedy_0-1699481494178.png

 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy No change by just removing quotes

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors