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
dgilm33
Helper I
Helper I

Donut Graph disappearing when using FORMAT dax

Hello, I am attempting to use a SWITCH formula to change between a count of something to the sales. This works, however I need the sales to show the "$" sign when switched to it, and the count to be formatted as general. When I attempt to use the FORMAT dax in my switch formula the donut chart viusal disappears. However the same formula with the FORMAT included works in a table. Why does this not work in a donut chart and is there another way of achieving this?

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

The reason it doesn't work (probably) is because when you use FORMAT, the type of your measure changes to a text rather than a number (which can't be aggregated in the same way). One way of getting around this is by using the using the dynamic formatting option for your measures. You can take a look at the SQLBI tutorial for doing so here: https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

The reason it doesn't work (probably) is because when you use FORMAT, the type of your measure changes to a text rather than a number (which can't be aggregated in the same way). One way of getting around this is by using the using the dynamic formatting option for your measures. You can take a look at the SQLBI tutorial for doing so here: https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/

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