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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ariaqi
New Member

Error Convert Text to Number, one column contains text and number

Hi,

 

I have a column cotains text and number. It automatically convert it to Number. I changed the datatype to Text in power quert editor, but still got error: couldn't convert to Number. Do you know how I can fix this? Thanks so much.

ariaqi_1-1641321867323.png

ariaqi_2-1641321926975.png

 

 

 

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

If you look in the lists of steps on the right hand side I'm guessing you now have two "Changed Type" steps.

 

You need to go back and click on the first one and change the type of the column at that point to text. It will ask if you want to overright the step. Click yes.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

3 REPLIES 3
smpa01
Community Champion
Community Champion

@ariaqi  IFERROR equivalent

add a custom column
try Number.From([column])/Text.From([column]) otherwise -999/"-999"
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
bcdobbs
Community Champion
Community Champion

If you look in the lists of steps on the right hand side I'm guessing you now have two "Changed Type" steps.

 

You need to go back and click on the first one and change the type of the column at that point to text. It will ask if you want to overright the step. Click yes.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Thanks so much!! It fixed!

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.