Locked lesson.
About this lesson
While there is certainly value in the initial analysis, the real value in any BI solution comes from the refresh. When your boss comes to you and asks you to update the solution it took you hours to build and gives you a deadline of 10 minutes, you need to be able to say "Yes, I've got this."
Exercise files
There are no related exercise files for this lesson.
Quick reference
The Value is in the Refresh
Demonstrating the real value of Power Query: the refresh.
When to use
When you have built a PivotTable or other data model around a source file and need to update the model to include new data. You do not need to build a new model each time the data is updated.
Instructions
The challenge with refreshing Power Query solutions
- File paths of the data sources are hardcoded into the file
- File paths need to be updated in the query in order to access and refresh the data
Fixing a broken file path
- Open the queries pane
- Excel 2016: Go to the Data tab and select “Show Queries” or “Queries & Connections”
- Excel 2010/2013: Go to the Power Query tab and select “Show Pane”
- Power BI: Click Edit Queries
- Edit the query by right clicking its name and choosing Edit
- Select the Source step
- Click the gear icon next to the Source step
- Browse to update the file path
- Click Close & Load
- Go to Data --> Refresh All to force the PivotTables to update
Hints & tips
- Power Query refreshes the PivotTable PivotCache before the query
- If your PivotTable does not update after a single refresh, refresh it a second time
Lesson notes are only available for subscribers.