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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
RH205
Helper I
Helper I

dynamic format decimal notation difference between visuals

Hi all!

 

The "new" dynamic format function results in two different outcomes. Within the matrix visual it is working like a charm, but the same measure/formating in a barchart or chart visual shows a different notation. It should be 112 K. Does anybody knows what the "problem" is? Is it my formating code or something else?

 

This is my dax formatting (There must be a better way to wright this, please educate me ;))

VAR CurrentValue = [Amount *-1]
return
SWITCH(TRUE(),      

        CurrentValue >= -100000 && CurrentValue <= -1, "0,0",
        CurrentValue >= -1000000 && CurrentValue < -100000, "#,. K",
        CurrentValue <  -1000000, "#,0,,.0 M",
        CurrentValue >= 1 && CurrentValue <= 100000, "0,0",
        CurrentValue >  100000 && CurrentValue <= 10000000, "#,. K",
        CurrentValue >  1000000, "#,0,,.0 M"
)
 

Unit setting = None & Decimalposition = Auto

RH205_1-1686823413170.png

 

Unit setting = None & Decimalposition = Auto

RH205_2-1686823470898.png

 

 

 

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There is a bug - you can't have zero decimals at the moment. For now specify one decimal as a stop-gap.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

There is a bug - you can't have zero decimals at the moment. For now specify one decimal as a stop-gap.

Hello,

Any news about the follow of this issue ? Original/official post ?
I can't find a thing for the moment. 

Thanks for the support

You can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues . If you have a Pro license you can consider raising a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.