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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
AlessandroBet
Helper V
Helper V

Remove column from xls

I'm getting data from xls file and i have created many visuals. Now i have to remove a column from the xls source and refresh the data. This comun is not used anymore indise PBI file

Which is the right process in order to avoid errors after refreshing?

 

Thanks

 

1 ACCEPTED SOLUTION
zoloturu
Memorable Member
Memorable Member

@AlessandroBet ,

 

If this column was not used in any transformation at PowerQuery steps then you don't need to do anything. Possible types of steps which can contain the name of the column in a transformation are Renamed columns, Pivot/Unpivot, Reordered columns, Transpose etc. Actually, you can go to Advanced Editor and remove the name of this column from all steps. 


Regards,
Ruslan Zolotukhin (zoloturu)
BI Engineer at Akvelon Inc. / Kharkiv Power BI User Group Leader / DAX & Power BI Trainer
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
It was useful? Press Thumbs Up!

You are from Ukraine? If yes then welcome to Power BI User Group - KhPUG website. Other country? Check and find proper one - Power BI User Groups

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@AlessandroBet 

If the columns is not used at all. Simply delete in the excel then manual refresh will not cause any error. 

Best,
Paul

zoloturu
Memorable Member
Memorable Member

@AlessandroBet ,

 

If this column was not used in any transformation at PowerQuery steps then you don't need to do anything. Possible types of steps which can contain the name of the column in a transformation are Renamed columns, Pivot/Unpivot, Reordered columns, Transpose etc. Actually, you can go to Advanced Editor and remove the name of this column from all steps. 


Regards,
Ruslan Zolotukhin (zoloturu)
BI Engineer at Akvelon Inc. / Kharkiv Power BI User Group Leader / DAX & Power BI Trainer
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
It was useful? Press Thumbs Up!

You are from Ukraine? If yes then welcome to Power BI User Group - KhPUG website. Other country? Check and find proper one - Power BI User Groups

 

amitchandak
Super User
Super User

Refer:

https://community.powerbi.com/t5/Desktop/How-can-I-remove-a-column-I-have-delete-from-data-source/td...

https://xxlbi.com/blog/safely-removing-columns-power-query/

https://blog.crossjoin.co.uk/2015/02/26/handling-added-or-missing-columns-in-power-query/

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
ChrisMendoza
Resident Rockstar
Resident Rockstar

@AlessandroBet -

 

In https://community.powerbi.com/t5/Desktop/Restoring-Removed-Column-Power-BI-Desktop/m-p/895271#M42918..., it was discussed on how to restore the column.

 

I believe the safest method to be RIGHT CLICK > DELETE the Column in the Fields List. The presumption of course is you're not referencing the values in the Column otherwise errors would be received.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors