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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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