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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Solution Sage
Solution Sage

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.