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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Convert text with commas into value

Hi all,

 

My database has some numerical fields that come in text and some of them have commas, by the time to convert the text to a value, the comma disappear and my number become  "bigger". For example if I have 100,00 I will have 10000, I also attach a printscreen .

 

I hope that anyone can help me

 

Best Regards

 

 

PBI example.jpg

1 ACCEPTED SOLUTION

Oh, I guess I misunderstood. Then replace "," with "." instead of blank.

View solution in original post

8 REPLIES 8
PattemManohar
Community Champion
Community Champion

I hope you are looking to achieve this...

 

InputInput

I've splitted the Data field into two parts i.e before comma and after comma. Duplicated Part2 field to be a decimal type.

 

Then added a final output field as below

 

FinalOutput = IF(VALUE(NumText[Part2Num])=0,NumText[Part1],NumText[Data])

 

OutputOutput





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Chihiro
Solution Sage
Solution Sage

Hmm, I'd do this in Query Editor. Right click on the column and replace "," with blank. Then change data type to number.

Greg_Deckler
Community Champion
Community Champion

So, are you saying that the commas in your case are decimals? So that 100,00 should be 100.00?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

100,00 should be 100 and 99,85 should be 99,85 and not 9985 for example. The commas disappear at all

These are always tough because I really can't play with the regional language settings which I believe handle things like decimals and dates in different formats. Sounds like your's might be set to English perhaps? Seems like if you had the right regional settings that Power BI would recognize those commas as decimals and convert them correctly to numbers by just changine the type.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Oh, I guess I misunderstood. Then replace "," with "." instead of blank.

This one comment saved my life today. Thanks man! 

Anonymous
Not applicable

I've used several formulas to reach my final goal, and I was successfull, thank you guys 

 

Test = VALUE(if(find(",";Production[PRODUCTION EBITDA YTD];1;0)>0;replace(Production[PRODUCTION EBITDA YTD];find(",";Production[PRODUCTION EBITDA YTD];1;0);1;".");Production[PRODUCTION EBITDA YTD]))

 

Best regards

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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