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
DavidCather
Frequent Visitor

Replace a data source for an Existing report where the new data source has different fields

So similar to the question here I have a PowerBi Dashboard with an Excel spreadsheet as the data source ExcelFilev0.4.xlsx I want to redirect the dashboard to point to ExcelFilev0.5.xlsx, but here I have a problem, some of the columns in excel have been removed between v0.4 and v0.5.  They weren't doing anything and it seemed neater to remove them.

 

How can I tell PowerBi that the columns no longer exist and that that's fine because we didn't need them anyway?

 

Thanks.

 

David

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

I assume the problem you're seeing is that when you import, the Query Editor is giving alerts about those columns not existing?

The easiest way to fix this is to go into the Query Editor, replace your source table, and press the Advanced Editor button.  This will bring up the entire list of code used to transform that table.  Look near the top, and there's probably a line that starts with #"Changed Type".  Go through that line, and remove the bracketed sections that include columns that you've removed.   

 

If you didn't use the columns in any of the rest of the transformations, you should be able to hit Done and go on your merry way.  If the query editor still gives you similar "The column 'name' of the table wasn't found." style error messages, look through the rest of the code in that advanced editor, and continue removing references to the removed columns. 

 

Once the code no longer references those columns, you should be all set!

View solution in original post

2 REPLIES 2
Cmcmahan
Resident Rockstar
Resident Rockstar

I assume the problem you're seeing is that when you import, the Query Editor is giving alerts about those columns not existing?

The easiest way to fix this is to go into the Query Editor, replace your source table, and press the Advanced Editor button.  This will bring up the entire list of code used to transform that table.  Look near the top, and there's probably a line that starts with #"Changed Type".  Go through that line, and remove the bracketed sections that include columns that you've removed.   

 

If you didn't use the columns in any of the rest of the transformations, you should be able to hit Done and go on your merry way.  If the query editor still gives you similar "The column 'name' of the table wasn't found." style error messages, look through the rest of the code in that advanced editor, and continue removing references to the removed columns. 

 

Once the code no longer references those columns, you should be all set!

Thanks, that has worked, the advanced editor code looked quite short because it doesn't word-wrap, but when I pasted in into a text editor and searched I was able to find the fields causing the errors and remove them.

 

Sorry for the slow reply, I've been working on the Excel side of my project and only got back to PowerBi today.

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.