Forum Discussion

DavidCather's avatar
DavidCather
Frequent Visitor
7 years ago
Solved

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 ...
  • Cmcmahan's avatar
    7 years ago

    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!