Forum Discussion
Disable "Include in report refresh" does not work
Hi
I have an old report that has the data saved with the report, however the underlying table has changed so I want to keep the data that was saved in the old report and not refresh the data or the meta data (columns & layout). I un-checked the "Include in report Refresh" option in Power Query however when I exit power query, PBI still tell me that one of the column that was saved with the report no longer exist in the latest underlying table. How can I force PBI to keep the old data that was previously saved and also bring in the latest version of the new table?
7 Replies
- maruthisp
Super User
Hi powerlight1,
The Include in report refresh option should prevent a table from being refreshed during a normal semantic model refresh. However, if the query is referenced by other queries, Power Query may still execute it to refresh those dependent tables.
Please try the following steps:- Open Power BI Desktop → Transform data.
- Right-click the table you want to exclude and uncheck Include in report refresh.
- Go to View → Query Dependencies and check whether other queries reference this table.
- If other queries depend on it, Power Query may still evaluate the source query during their refresh.
- Select Close & Apply, save the PBIX file, and republish it to Power BI Service if required.
Important: Disabling Enable load is different from disabling Include in report refresh. Also, refreshing the Power Query preview can still execute the query independently.
My recommendation: If you want to keep the table's existing data unchanged, ensure that it is an Import table, disable Include in report refresh, and check that no other refreshing queries depend on it.
If the table is independent and still reloads during a normal refresh, I would suggest checking the refresh operation and Power BI Desktop version to narrow down the issue.
Best Regards,
Maruthi
LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/
X - Maruthi Siva Prasad - (@MaruthiSP) / X - v-aatheeque
Community Support
Hi powerlight1
The Include in report refresh option is used to exclude a query from the regular report refresh process.
If you have disabled this option for the old table but are still experiencing the issue, I would suggest checking the following:
- Open Power Query Editor and confirm that the Include in report refresh option is disabled for the old query.
- Check whether any other queries are referencing the old query using the Query Dependencies view.
- Check whether the error occurs when selecting Close & Apply or only when refreshing the report.
For reference: Configure refresh options in Power BI.
- ShivekMaharaj
Community Champion
Hi powerlight1,
I think the key distinction here is between refreshing the data and refreshing the schema.
Unchecking Include in report refresh prevents that query from being included in the normal data refresh. Microsoft documents that excluded queries are also excluded from automatic refresh in the Power BI service.
However, Power BI Desktop can still synchronize schema changes when you use a normal Refresh or Close & Apply. That means if the source table has added, renamed, or removed columns, Power BI can still detect those structural changes even though you did not want the old imported rows refreshed.
Microsoft now exposes separate refresh options for exactly this reason:
- Refresh Schema and data
- Sync schema only
- Refresh data only
So if your goal is to keep both the old data and the old table structure unchanged, I would avoid a normal schema refresh on that table.If you are on a recent Desktop version, try selecting the table and using Refresh data only rather than Refresh Schema and data.
Microsoft's refresh guidance explains that Refresh data only loads fresh data while preserving the current schema in the semantic model.
For your scenario, though, if this table is supposed to remain permanently frozen, I would also consider removing its dependency on the live source entirely. For example, keep the old table as a static import or snapshot and bring the new source version in as a separate query/table.
That is usually safer than keeping a frozen historical table connected to a source whose schema is still changing.
AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.
Hi powerlight1,
Echoing v-aatheeque and maruthisp: the Include in report refresh setting only controls whether a query is run during a refresh, and, as maruthisp notes, a query that other queries depend on may still be evaluated. Both replies suggest checking Query Dependencies, and that is the right first step. The part I would add is why unchecking the box does not make the message go away: the warning about a missing column is about the table definition the model has stored versus the shape the query returns when you close and apply, which is a separate step from refreshing data. So the setting alone may not be enough to freeze a table whose source has changed. I can't see your file, so treat the options below as ways to get to a frozen copy rather than a guaranteed fix.
What each setting does
Setting or action What it affects What it does not do Include in report refresh unchecked The query is skipped during refresh It does not stop a dependent query from evaluating the source, and it does not change the stored column definition Close and Apply Reconciles the query output with the model table It can raise the missing-column warning even if refresh is off Query Dependencies view Shows what else references the table Does not change anything by itself Ways to keep the old data and add the new table
Option How Trade-off Snapshot the old data into a static table Export the old table from the report (for example with an export from a table visual) and load it as its own source, or paste it with Enter Data for small tables The data is frozen for good and no longer depends on the changed source Duplicate the query: one frozen, one live Keep a copy of the old query for the legacy data and create a separate query for the new table version Two tables to maintain, but each has a clear purpose Make the old query tolerant of the missing column Select the columns with MissingField.UseNull so the step does not fail when the source column is gone Keeps the layout, but the data for the missing column becomes null on refresh A tolerant column selection looks like this:
let Source = OldTable, // keep the columns the report was built on; missing ones become null instead of an error Keep = Table.SelectColumns(Source, {"Id", "Name", "OldMeasureColumn"}, MissingField.UseNull) in KeepIf the old data is the part that must never change, the snapshot is the safest of the three, because nothing in the file then depends on the source that was altered. Afterwards, load the latest version of the table as a separate query, and use relationships or a merge to connect the two where needed.
So my overall approach would be:
1. Check Query Dependencies for anything still referencing the old table 2. Freeze the old data as a static snapshot, separate from the source 3. Load the latest table version as its own query 4. Use MissingField.UseNull anywhere the old column list must be keptAI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.
Hi powerlight1 if you disable Include in report refresh, the query should be ignored during semantic model refresh. However please make sure any reference to that query is not being used in other active queries.
Hope this helps to resolve your problem. If it does, then please mark it as solution.Thanks - Samrat
Hi,
Unchecking "Include in report refresh" prevents normal data refresh, but Power BI may still evaluate the query and detect schema changes when applying modifications.
Recommended solution:
- Save a backup of your original PBIX file.
- Export the existing historical data to Excel or CSV before refreshing.
- Import the saved data as a separate table named HistoricalData, preserving the original columns and data types.
- Import the updated source as a new table named CurrentData.
- Keep both tables independent to avoid future schema conflicts.
Important: Disabling refresh or duplicating a query does not guarantee that the original data and metadata will remain unchanged.
This approach allows you to preserve your historical data while working with the latest table structure.
- Murtaza_Ghafoor
Super User
Hi powerlight1 ,
The Include in report refresh option only disables automatic data refresh but It does not guarantee that your PBI report will preserve the old schema or ignore broken column references.
Step by step process to fullfill the requirements
- Take a backup of your existing PBIX file.
- Keep the existing table as a static snapshot.
- Disable its refresh.
- Check Power Query dependencies for references to removed or renamed columns( that is the most probable casue).
- Import the updated source as a separate table with a new name.
- Validate existing visuals, relationships and measures.
Important: If Power BI still evaluates the old query, export its existing data to CSV and use that as a static source.
If this helps, ✓ Mark as Kudos | Help Other