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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.