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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Juan_Quikin5
Frequent Visitor

Decimal formats varying in table and card visuals

Hi guys!

 

I have the regional settings of my current file in "English (United States)."  However, the auto-display units in my visual card are not matching the format of the following measure for a table visual:

 

SellOut = 
VAR calc = [MGMV]
var decimals = "0.0"
RETURN
    SWITCH ( TRUE() ,
        calc > 1000000 , FORMAT ( calc / 1000000 , "$" & decimals & "M" ) ,
        calc > 1000 , FORMAT ( calc / 1000 , "$" & decimals & "K" ) ,
        FORMAT ( calc , "$" & decimals )
    )

 

Juan_Quikin5_0-1676858715327.png 

Juan_Quikin5_1-1676858753873.png

 

 

The card takes a comma as a decimal separator while the table takes a dot as a decimal separator.

I tried changing the "VAR decimals" part to "0,0", but this format is adding a zero to left whenever the value has just one digit (e.g. $06K)

 

Any idea would be very appreciated! Thanks guys!

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Juan_Quikin5 

try to replace "0.0" with "#.#"

Hi @FreemanZ, I tried it but I get the same result as "0.0". 😕

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.