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
HarryMay69
New Member

Column Count on Data Import

Hi All

 

I am using a MRP system that exports various businees report daily as CSV files.

I have many Power Queries linked to the .CSV files in both Excel and BI.

 

The raw reports can be amended by the IT deparment for other users and aditional columns are added to the report.

Is there any way of setting up power query to ignore any new columns added to the original data import file.

 

At present all of my queries fall over in the applied steps when it trys to change type, for some reason it notices the new colum in the source data, and trys to promote headers, but in te change type field it cant recognise the header.

 

 

1 ACCEPTED SOLUTION

Okay thanks, so I assumed as it auto fills in the first three applied steps thats the order they needed to be in.

View solution in original post

4 REPLIES 4
HotChilli
Super User
Super User

The 'remove other columns' will have to be before the Changed Type.

Okay thanks, so I assumed as it auto fills in the first three applied steps thats the order they needed to be in.

HotChilli
Super User
Super User

How about inserting a step to 'remove other columns'?  If you select all the columns required with ctrl mouse click or shift mouse click then right-click, the option will be there.

This translates to a Table.SelectColumns call.

Hi Yes I already have that but after the change type, i.e. after the auto populated three steps.

HarryMay69_0-1680603235515.png

The source step is finding the new columns added in the data, then the promote headers is working but the change type falls over as it cant find the new columns promoted headers name. you just get this at the end of the code, , {"", type text}}) and you have to manually type in the new colum name.

 

 

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