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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to replace dot in decimal numbers to comma (not thousand separator!)

Please, in your answer, don't mention "thousand separator" or "regional settings".

 

How can I replace dot in all decimal numbers to comma as a mass replacement in a column? The column is already "decimal number" type but some of the numbers come with dot from the SQL and the column doesn't recognize them as numbers and they are then "text". This produces errors.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You may get the result you want by using the "substitute" function.

SUBSTITUTE.PNG

 

Best Regards,
Liang
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

6 REPLIES 6
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you are using the "directquery" connection mode, you could only modify the data at the data source.

If you are using the "import" connection mode, you could modify the data in edit queries.

replace.PNG

 

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

Anonymous
Not applicable

@V-lianl-msft with replace values we can replace only numbers not (.)  any other alternative?

@Anonymous 

 

You can use "Replace Values" in Power Query to change any character (or strings, spaces...), even into  "blank" to remove it if you so wish (leave the "Replace with" box empty to remove the character). Just make sure the column is formatted as text.

Here is an example changing from " . " to ","

Before.JPG

 

Changed to text.JPG

 

Replace.JPG

 

Result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @Anonymous ,

 

You may get the result you want by using the "substitute" function.

SUBSTITUTE.PNG

 

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

Anonymous
Not applicable

@V-lianl-msftThank you

PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

You can achieve this in Power Query using the "Replace values" function under the "Home" tab





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors