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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Converting wrongly formatted percentages to proper decimals

I am trying to build a dashboard using OECD's unemployment rate from here: https://data.oecd.org/unemp/unemployment-rate.htm#indicator-chart

 

Problem is the rate gets wrongly converted to whole numbers when downloading as csv and importing into PBI.

Pipss_1-1605621892114.pngPipss_2-1605621906430.png

 

I've been trying stuff like text.padstart but not all the numbers are of the same length. Fx:

Pipss_3-1605621981819.png

 

2 ACCEPTED SOLUTIONS
PhilipTreacy
Super User
Super User

Hi @Anonymous 

I don't know what CSV you are working with.  I downloaded 4 or 5 from that site and none of them match the data in your screenshots.

Can you please share or indicate exactly what data you are using.

Thanks

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

Anonymous
Not applicable

@PhilipTreacyYour answer lead me to a workaround. I figured it was just my excel messing it up so i downloaded as txt file, imported into PBI, made sure to not recognize data types, manually split the columns and replaced the dots in the Value column with commas. Then I changed type to decimals and finally prefixed with the percentage sign.

View solution in original post

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @Anonymous 

I don't know what CSV you are working with.  I downloaded 4 or 5 from that site and none of them match the data in your screenshots.

Can you please share or indicate exactly what data you are using.

Thanks

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

@PhilipTreacyYour answer lead me to a workaround. I figured it was just my excel messing it up so i downloaded as txt file, imported into PBI, made sure to not recognize data types, manually split the columns and replaced the dots in the Value column with commas. Then I changed type to decimals and finally prefixed with the percentage sign.

amitchandak
Super User
Super User

@Anonymous , Rate is coming as text, change its data type to number and then try

Anonymous
Not applicable

@amitchandakI changed it to text myself to try concatenating with a column of 0.0's. It's the same when its a number unfortunetaly

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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