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

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

Reply
Anonymous
Not applicable

Column type switched unexpectedly in powerquery

I stumbled onto a very strange behavior of PowerQuery when importing data from an excelfile.

I read a file, clean it up a a little, add 2 columns (copy1 and copy2).

If I keep the original column, all is well and the columns behave as expected.

If I remove the original column, "copy2" switches it's datatype to "text". I'm completely dumbfounded as to why this occurs.

excel file with data 
pbix file with tables 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

As checked your sample pbix file, the original numeric columns were not recognized as a numeric type, and their data type is Any. Therefore, please add one step "Changed Type" to change the data type of these columns as numeric type before the step of adding the copied columns. Then the copied columns will also show the correct data type.

yingyinr_0-1613013925072.png

yingyinr_1-1613013984770.png

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

As checked your sample pbix file, the original numeric columns were not recognized as a numeric type, and their data type is Any. Therefore, please add one step "Changed Type" to change the data type of these columns as numeric type before the step of adding the copied columns. Then the copied columns will also show the correct data type.

yingyinr_0-1613013925072.png

yingyinr_1-1613013984770.png

Best Regards

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors