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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Change Column Type Across Multiple Queries

Hello, 

 

I'm trying to import several tabs of data from an excel workbook. To avoid repetitive action I would like to change the column type from "number" to text on over 100 queries. Is there a way to do this automatically? I'm new to importing big data sets such as this one into BI. 

 

M

1 ACCEPTED SOLUTION

Yea you can import them all into one table. Start by importing one sheet. Then in the query steps, there should be 2 listed. Delete the second one to see a table of all the excel sheets. Then just click the expand button on the sheet column (don't select the prepend option). For the 00 issue, you should see a formula where the type of each column is auto detected. Just edit the column type of number (or Int*.Type) to "text"

View solution in original post

3 REPLIES 3
artemus
Microsoft Employee
Microsoft Employee

Do you really need 100 seperate queries, or can you load all the data into a single table?

Anonymous
Not applicable

I'm trying to get them as one table, but thought I had to import them all as seperate queries first. Is there a better way to upload them as one table? I'm running into issues using power query in excel to do this, so was trying through BI

The issue is that a few of the data fields start with "00" and I need the "00" to be retained

Yea you can import them all into one table. Start by importing one sheet. Then in the query steps, there should be 2 listed. Delete the second one to see a table of all the excel sheets. Then just click the expand button on the sheet column (don't select the prepend option). For the 00 issue, you should see a formula where the type of each column is auto detected. Just edit the column type of number (or Int*.Type) to "text"

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.