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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mancdave
Frequent Visitor

Trasnsforming data type from text to decimal number

Hi Guys,

 

Im having an issue with transforming data from text to decimal number, please see error below.

 

let
Source = #"_Population Growth Rate",
#"Added Index" = Table.AddIndexColumn(Source, "Row Number" ,1),
#"Kept Errors" = Table.SelectRowsWithErrors(#"Added Index", {"Rank", "Country", "Population growth rate (%)"}),
#"Reordered Columns" = Table.ReorderColumns(#"Kept Errors", {"Row Number", "Rank", "Country", "Population growth rate (%)"})
in

 

Added index was added automatically, i am going through a tutorial on Lynda.com " Learning power bi desktop", Chapter 3 " cleaning up data"

 

The data is an .xlsx format and im running  latest version of pwer bi desk top. Any help would be appreciated

1 ACCEPTED SOLUTION
mancdave
Frequent Visitor

I seemed to have found the issue, this is due to characters from text to decimal symbol, I replaced the negative symbol on the column to decimal compliant symbol

 

symbol to replace with eg  "−"  > "-"   note the subtle differences. Using the replace Value tool on the transform tab

View solution in original post

2 REPLIES 2
mancdave
Frequent Visitor

Hi Guys i seem to be having an error i have a tutorial video from Lynda.com " Learning microsoft power bi desktop" , Chapter 3 "cleaning up data". The excercise files was provided by them.

 

Basically i am changing the data type from text to decimal number and it is producing an error:

 

let
Source = #"_Population Growth Rate",
#"Added Index" = Table.AddIndexColumn(Source, "Row Number" ,1),
#"Kept Errors" = Table.SelectRowsWithErrors(#"Added Index", {"Rank", "Country", "Population growth rate (%)"}),
#"Reordered Columns" = Table.ReorderColumns(#"Kept Errors", {"Row Number", "Rank", "Country", "Population growth rate (%)"})
in

 

I did not add the index and the tutorial video doesnt produce these errors either. Any chance anyone knows how/why this error is occuring, This is from an .xlsx file.

 

 

mancdave
Frequent Visitor

I seemed to have found the issue, this is due to characters from text to decimal symbol, I replaced the negative symbol on the column to decimal compliant symbol

 

symbol to replace with eg  "−"  > "-"   note the subtle differences. Using the replace Value tool on the transform tab

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors