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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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