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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
PieroPinzone95
Frequent Visitor

Format with dot as thousands separator and comma as decimal separator

Hi guys, I would like to convert the format as shown above... i start with comma thousands separator and dot as decimal separator... i want the opposite

Screenshot (93).png

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @PieroPinzone95 ,

Your regional settings determine what character is used as the thousands separator. 

You can consider using the Format() function to implement it, but it ends up in text formatting

FORMAT function (DAX) - DAX | Microsoft Learn

 

Here are the steps you can follow:

1. Create calculated column.

Flag =
var _thousand=ROUNDDOWN('Table'[Column1]/1000,0)
var _hundreds=ROUNDDOWN(MOD('Table'[Column1],1000),0)
var _decimal=ROUND(MOD('Table'[Column1],1),1) * 10
return
_thousand &"."&_hundreds&","&_decimal

2. Result:

vyangliumsft_0-1682666166250.png

 

Best Regards,

Liu Yang

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

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @PieroPinzone95 ,

Your regional settings determine what character is used as the thousands separator. 

You can consider using the Format() function to implement it, but it ends up in text formatting

FORMAT function (DAX) - DAX | Microsoft Learn

 

Here are the steps you can follow:

1. Create calculated column.

Flag =
var _thousand=ROUNDDOWN('Table'[Column1]/1000,0)
var _hundreds=ROUNDDOWN(MOD('Table'[Column1],1000),0)
var _decimal=ROUND(MOD('Table'[Column1],1),1) * 10
return
_thousand &"."&_hundreds&","&_decimal

2. Result:

vyangliumsft_0-1682666166250.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Top Kudoed Authors