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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
RH205
Frequent Visitor

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.