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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors