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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

change format from text to number

Hi,

 

I have a set of columns with numbers that I noticed that PBI was treating as text. When going to modeling to convert there format to decimal numbers or any kind of Numbers format, it removes any decimal points in the numbers. For instance if I have a (2,28) in one cell, when converting its format to Numbers, the number becomes (228). how can I convert the number format from text to numbers without removing the decimal points?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can try the steps below.

 

Open Power Query Editor, remove any step in Query Settings that change your current Text Format into Number first.

2018-10-26_14-52-05.png

 

 

Then, select the orignial text column, right click to choose Change Type -> Using locale...2018-10-26_14-52-05.png

 

 

Then choose Data type and your Locale

2018-10-26_14-55-54.png

 

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

You can try the steps below.

 

Open Power Query Editor, remove any step in Query Settings that change your current Text Format into Number first.

2018-10-26_14-52-05.png

 

 

Then, select the orignial text column, right click to choose Change Type -> Using locale...2018-10-26_14-52-05.png

 

 

Then choose Data type and your Locale

2018-10-26_14-55-54.png

 

 

 

Anonymous
Not applicable

Exactly, works fine now thanks. 🙂

v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

You should set a proper format for the original data. Please refer to the snapshot below. 

change-format-from-text-to-number

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

It depends on your settings. 

You could use PowerQuery to transform these values from texts to numbers. 

Idk what values you have, but try replacing the text-values from . to , (dot to comma) or the other way around. 

Then try the transformation to decimals again.

 

Good luck 🙂

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors