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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dylmlee
Frequent Visitor

New Excel file in folder with new column not importing (cannot change the number of columns in code)

I have loaded data into power query from a folder that has multiple excel files. I have recently updated the last excel file with a new column. The new column does not add into power query. I have looked at changing the number of columns on the query but this is not there. I have also tried to change the number of columns on the sample queries.

 

I was thinking about changing this: Table.ColumnNames(#"Transform File (2)"(#"Sample File (2)"))), to either a new table that has all the columns including the new column or the latest file that includes the new column. Im not sure what syntax to use. 

2 REPLIES 2
dylmlee
Frequent Visitor

Thanks all sorted. I went to the sample file and after seeing which file was being referenced I edited the file on my local machine by adding the new column. An easy fix but not the best if anyone else has this issue.

 

 

JamesRobson
Resolver II
Resolver II

Does the colum appear further up in the query steps?

I had a similar issue when using a Table.SelectColumns so it didn't select my new column and replaced it with a Table.RemoveColumns

 

= Table.SelectColumns(#"Expanded est-pack",{"ItemDesc", "CustCode", "CustItemRef", "MasterEstimateCode", "InventoryQty", "PltQty"})

 

= Table.RemoveColumns(#"Expanded est-pack",{"ItemCode"})

 

Although on the face of it the 2 examples above look to give the same results the second will let you keep the new columns added!

 

Hope that helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors