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

Custom FORMAT() thousand separator in a DAX measure

My region is set to Vietnam so that the thousand separator becomes "." and the decimal separator would be "," according to local conventions. For example, one thousand two hundred point zero two should show "1.200,02". However with the measure below, the Sales number would use normal separators "1,200.02" again.
Sales measure for card = IF(ISFILTERED(Dim_Date),FORMAT(([Sales]/1000000000), "#,##0 \billion\V\N\D;") & "         ", "Year not selected")
This is a total sales measure written specifically for card visuals (to add some space and for it to say "Year not selected" when no year is chosen). How do I format this for it to follow Vietnamese conventions again? Thanks.
 
1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @phuonganhtdinh ,

 

We can also change the measure as following to meet your requirement:

 

Update formula: consider it may have negative value, we use "@" as a temp char instead of previous "-"

 

Sales measure for card =
IF (
    ISFILTERED ( Dim_Date ),
    VAR sales =
        FORMAT ( ( [Sales] / 1000000000 ), "#,#.## \billion\V\N\D;" )
    RETURN
        SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( sales, ".", "@" ), ",", "." ), "@", "," ) & "         ",
    "Year not selected"
)

 

 

7.jpg


By the way, PBIX file as attached.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
TimoRiikonen
Helper V
Helper V

Try "Standard" format. Although this format is not visible in the list by default, you can still overwrite it as the display format.

For integers use custom format #,0.

v-lid-msft
Community Support
Community Support

Hi @phuonganhtdinh ,

 

We can also change the measure as following to meet your requirement:

 

Update formula: consider it may have negative value, we use "@" as a temp char instead of previous "-"

 

Sales measure for card =
IF (
    ISFILTERED ( Dim_Date ),
    VAR sales =
        FORMAT ( ( [Sales] / 1000000000 ), "#,#.## \billion\V\N\D;" )
    RETURN
        SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( sales, ".", "@" ), ",", "." ), "@", "," ) & "         ",
    "Year not selected"
)

 

 

7.jpg


By the way, PBIX file as attached.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Why if you use a comma in the format to separate thousands, why is there a period for the thousands separator?

Great answer @v-lid-msft

I've been searching for this solution for a while. It is a witty one. Thanks for sharing 😉

nandukrishnavs
Community Champion
Community Champion

@phuonganhtdinh 

 

Check out this video 

 

Documentation: https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

 



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂

 

 


Regards,
Nandu Krishna

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
Top Kudoed Authors