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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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