cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MOHUS Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Jessica_Seiya Established Member
Established Member

Re: change format from text to number

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

 

 

 

4 REPLIES 4
Anonymous
Not applicable

Re: change format from text to number

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 Smiley Happy

v-jiascu-msft Super Contributor
Super Contributor

Re: change format from text to number

Hi @MOHUS,

 

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.
Jessica_Seiya Established Member
Established Member

Re: change format from text to number

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

 

 

 

MOHUS Frequent Visitor
Frequent Visitor

Re: change format from text to number

Exactly, works fine now thanks. Smiley Happy

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 35 members 1,065 guests
Please welcome our newest community members: