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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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