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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
JRVV
New Member

Trouble with decimal commas and decimal dots

In SQL DB my data appear with decimal commas, but in Power Query that disappear. 12000,5 ---> 120005. Someone can give me some advice, please? 

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

Hi @JRVV ,

 

Thanks for the reply from Fowmy .

 

Power Query may interpret the comma as a thousands separator instead of a decimal point, so the data will change after import.

 

To fix this you can follow along with my actions.

 

First, here's the data I used for testing:

Value

12000,5

3456,78

789,01

 

I can reproduce your error, the comma separator is gone after importing the data into Power Query.

vhuijieymsft_2-1739168603412.png

 

To resolve this issue, first, in the Home tab, click on the Data Type drop-down menu and set the Data Type to Text. This step ensures that Power Query does not automatically convert commas to thousands separators.

 

Then, use the Replace Value function to replace the comma with a decimal point:

vhuijieymsft_3-1739168603418.png

 

Finally, select the Value column. Click on the “Change Data Type” menu and set the data type to “Decimal Number”.

vhuijieymsft_0-1739168557618.png

 

In this way, Power Query correctly converts decimal values from text format to decimal format.

vhuijieymsft_1-1739168557624.png

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
v-huijiey-msft
Community Support
Community Support

Hi @JRVV ,

 

Thanks for the reply from Fowmy .

 

Power Query may interpret the comma as a thousands separator instead of a decimal point, so the data will change after import.

 

To fix this you can follow along with my actions.

 

First, here's the data I used for testing:

Value

12000,5

3456,78

789,01

 

I can reproduce your error, the comma separator is gone after importing the data into Power Query.

vhuijieymsft_2-1739168603412.png

 

To resolve this issue, first, in the Home tab, click on the Data Type drop-down menu and set the Data Type to Text. This step ensures that Power Query does not automatically convert commas to thousands separators.

 

Then, use the Replace Value function to replace the comma with a decimal point:

vhuijieymsft_3-1739168603418.png

 

Finally, select the Value column. Click on the “Change Data Type” menu and set the data type to “Decimal Number”.

vhuijieymsft_0-1739168557618.png

 

In this way, Power Query correctly converts decimal values from text format to decimal format.

vhuijieymsft_1-1739168557624.png

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Fowmy
Super User
Super User

@JRVV 

1. Try to change the data type to Decimal Number
or
2.   Click Transform > Data Type>  Using Locale.
Choose "Decimal Number" and set the locale to the one matching your SQL Server settings (e.g., French (France) or German (Germany) if your SQL uses a decimal comma)

3. If your SQL Server stores numbers as text with commas, convert them before importing:

SELECT REPLACE(CAST(ColumnName AS NVARCHAR(50)), ',', '.') AS ConvertedColumn
FROM TableName



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors