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
RonvdLaan
Frequent Visitor

Convert a string in to a number

How can i convert this string (8,66719E+14 ) in to a regular number in power query?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RonvdLaan 

 

Power Query is for cleaning and preparing your data. In Power Query Editor you can change the data type but you cannot change the data format. But don't worry, what you see isn't necessarily how it will look when it's in a report/visual. Ensure the column is of Decimal number data type, then load data into Power BI Desktop. You can then change the format to Decimal number there.

vjingzhanmsft_0-1720749285649.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @RonvdLaan 

 

Power Query is for cleaning and preparing your data. In Power Query Editor you can change the data type but you cannot change the data format. But don't worry, what you see isn't necessarily how it will look when it's in a report/visual. Ensure the column is of Decimal number data type, then load data into Power BI Desktop. You can then change the format to Decimal number there.

vjingzhanmsft_0-1720749285649.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

collinsg
Super User
Super User

Good day @RonvdLaan 

This code will convert text in column "Number" to a number. Replace "#"Previoius Step" with the name of the previous step in your query.

= Table.TransformColumns( #"Previous Step", {{"Number", each Value.FromText(_), type number}} )

Hope this helps 

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.