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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.