Locked lesson.
About this lesson
Power Query automates the process of getting data into a table and performing routine edits.
Exercise files
Download this lesson’s related exercise files.
Bonus Power Query.xlsx9.9 KB 2020_01 GA.xlsx
51.4 KB 2020_02 GA.xlsx
51.6 KB 2020_03 GA.xlsx
51.8 KB 2020_04 GA.xlsx
51.6 KB 2020_05 GA.xlsx
53.9 KB 2020_06 GA.xlsx
54 KB 2020_07 GA.xlsx
59.1 KB 2020_08 GA.xlsx
60.6 KB 2020_09 GA.xlsx
62.1 KB
Quick reference
Power Query
You can use a Power Query to add data to your dashboard.
There are many ways to do this. In this lesson, we pointed Excel to a created folder.
Preparations
- Prepare a dedicated folder on your drive where you are going to only add the data for the dashboard
- Download data from the source and save it using a consistent naming method, I used the date as a file name, because I needed something in the folder to give me an indication of the date
Back in Excel
- On a blank sheet, go to the data tab, get and transform data grouping, get data, from file, from folder and point Excel towards the dedicated folder
- Combine and transform the data
- The power query editor screen will pop up over the Excel screen
Power Query Editor
In general, always check your headings and the data type for each column
- Select the first column (the name of the sheet containing the date) and on the add column tab, from text grouping, extract button helps to get the first numbers to get the date
- Repeat the process until you have the columns you need
- Delete the columns you don’t need and change column headings and data types
- On the home tab, click close and load to and point Power Query towards the area in the sheet where you want the data table
To refresh data
- Download data from your source, change the file name to be consistent with your other file names
- Drag and drop the file in the dedicated folder
- Open Excel, right click on the table and refresh
Remember to refresh any pivots linked to the table separately, you’ll probably only need to update the first pivot and all pivots and charts linked to the table will update
Login to downloadLesson notes are only available for subscribers.