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

deleted columns in excel source

Hi,

 

I use Power BI Desktop with an excel file as source. I had to delete one column in the excel table and now Power BI always give me an expression.error to tell me that it doesn't find the column.

I already refresh the query editor and delete the column in the pbi desktop, but the error message still come back.

 

Is there anybody to help me ?

 

Thanks !

1 ACCEPTED SOLUTION
PavelR
Solution Specialist
Solution Specialist

@titou64

You have to delete the specified column from all the steps in Query editor. Let's have a look into Advanced editor in Home ribbon and delete all parts of code where the specified column is used - not the steps but only the sections connected to the column.

That's it.

 

Regards.

Pavel

View solution in original post

6 REPLIES 6
PavelR
Solution Specialist
Solution Specialist

@titou64

You have to delete the specified column from all the steps in Query editor. Let's have a look into Advanced editor in Home ribbon and delete all parts of code where the specified column is used - not the steps but only the sections connected to the column.

That's it.

 

Regards.

Pavel

Thank you, I've been having this problem as well. The company that generates my report decided it would be fun to change the column names ever so slightly which ruined my report.

 

I followed the steps you listed and I think I finally have an updated report. These are the steps I did (the ones you listed but also additional)

 

I went into the data tab and right clicked on the report in the right section labeled fields and click edit query.

 

I clicked on Advanced Editor and copy and pasted it into word (for finding/editing purposes). Removed the section that was causing problems starting from the comma to the next comma ensuring I left one between sections.

Then copied and pasted back into BI, hit done and waited for the next error.... rinse and repeat until you no longer get errors.

 

Then I clicked on the gear for "Source" in the applied steps section

Changed Open file as to "Automatic"

Doubled Clicked on the file shown

Clicked Insert

Then hit close and apply.

 

I now had a refreshed updated report... Annoying (I hope there is an easier way someone can describe) but it worked so now future reports will just update with no issues.

 

Oh and if you have a report you made it may have a button called Fix, I had to do that at least once.

 

 

 

Thank you, I've been having this problem as well. The company that generates my report decided it would be fun to change the column names ever so slightly which ruined my report.

 

I followed the steps you listed and I think I finally have an updated report. These are the steps I did (the ones you listed but also additional)

 

I went into the data tab and right clicked on the report in the right section labeled fields and click edit query.

 

I clicked on Advanced Editor and copy and pasted it into word (for finding/editing purposes). Removed the section that was causing problems starting from the comma to the next comma ensuring I left one between sections.

Then copied and pasted back into BI, hit done and waited for the next error.... rinse and repeat until you no longer get errors.

 

Then I clicked on the gear for "Source" in the applied steps section

Changed Open file as to "Automatic"

Doubled Clicked on the file shown

Clicked Insert

Then hit close and apply.

 

I now had a refreshed updated report... Annoying (I hope there is an easier way someone can describe) but it worked so now future reports will just update with no issues.

 

Oh and if you have a report you made it may have a button called Fix, I had to do that at least once.

 

 

 

I am having a similar issue but I already deleted the column from an appended. The "source" tables are all the same (I didn't delete anything). The only change is the column deleted from the appended table.

 

Is there some way to restore that column?

 

I have tried going through the Advaced Editor to "restore" the append forumula to the default which doesn't seem to work.

 

 

Dear All,

 

I'm in the same situation right now, but I can't solve the issue with the solution suggested in this post.

 

Can you please help me to solve the issue? I basically deleted four columns from my excel file, but deleting the column from the query brings me to the issue "the column wasn't found".

 

I don't know how to solve it, I'm available to share the query information with you, I really need to fix the problem.

 

Thank you,

 

Alessandro

Thanks for your help ! It works ! Smiley Happy

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