Efficiencies gained from Power Query can be life changing. I’m not exaggerating.
Power Query can reduce time spent gathering and cleaning data by up to 99%!
Imagine if all you had to do was click a single button and all the boring and laborious data gathering and cleaning was done for you. What would you do with all that spare time?
However, a lot of people find Power Query daunting, but it needn’t be. In this
tutorial I’ll get you up and running with it in 3 easy steps.
Tip: Power Query is available in both Excel and Power BI, making these skills transferrable. I’m going to demonstrate it from the Excel interface, but it works the same in Power BI.
But better than that, it enables you to automate the gathering and cleaning of data.
Once you create a query it can be used again and again to
gather and clean data with the click of a single button.
This means data gathering and cleaning tasks that you used to perform daily, weekly, or monthly can now be done with one click!
Power Query can get data from many different sources including:
Excel, Text, CSV files
Web pages
Databases
Pictures
PDFs
SharePoint/OneDrive
And much more
Step 1 – Get the Data
Use the Get Data menu on the data tab of the ribbon to specify where the data is you want to get, or use the shortcut icons:
In this example I’ll connect to a CSV file that’s in a file on my PC. Once connected to the data source, the Power Query editor window opens and the first 999 rows* of the data are displayed:
* Power Query only displays the first 999 rows to enable it to be super responsive while you’re making transformations and working in the editor. When you load the query, the full
data set is loaded.
Step 2 – Clean the Data
The editor window is full of point and click icons for common data cleaning tasks. The Transform tab shown below contains just some of them:
Another common data preparation task is adding columns with calculations and lookup formulas.
The Add Column tools enable you to write IF formulas with drop-down lists:
And the Column From Examples tool uses AI to write formulas for you based on examples you give it.
For example, I want to add a column that contains the month name extracted from the DateTime field.
I simply type one or two examples, Power Query detects that I want the Month Name and writes a formula for me:
Check out the video above for more examples.
Step 3 – Load the Data
Once you have finished making the transformations, you’re ready to load the data to Excel or Power BI where you can begin analysing the data.
The first time you load a query you can choose the Close & Load To… option which allows you to specify where you want to load it (you can change it later):
Note: in Power BI ‘Close & Apply’ loads the data to the Power Pivot data model:
What Power Query Isn’t Used For
A common misconception is that we use Power Query to analyse and format data. We don't.
The sole purpose of Power Query is to gather and clean data and load it to Excel or Power BI.
The analysis and formatting of the data into a report is done with formulas, PivotTables, charts/visuals etc. once you’ve closed & loaded the query.
Get Started with Power Query
Now that you see how easy Power Query is to use, I’m sure you’ll want to keep exploring. Check out the links below:
Dashboards provide insight, analysis and alerts by displaying key trends, comparisons and data in
interactive reports. The reader can filter data and change views to find answers to their questions and problems.Read More
Microsoft’s latest business intelligence (BI) & data visualization tool enables you to quickly develop stunning interactive dashboards. Embed Excel charts, tables, Pivot Tables and dashboards in your Power BI dashboards, then
securely share your dashboards to any device.Read More
Get quickly up to speed with Excel's functions. This course covers the fundamentals for each function, and less obvious uses for them. It's these more advanced techniques that will really set you apart from the crowd.Read More
Make huge efficiency gains by using dynamic named ranges to automatically update formulas, Pivot Tables and charts. Automate formatting like banded rows or columns; sorting and filtering; and totals and statistics. Everything you need to work with Tables in less than 1 hour.Read More
This short course will quickly have you building your own Pivot Tables with confidence. Start with the ideal data layout for creating Pivot Tables. Then move on to formatting, aggregation, pivot charts, filters, slicers and much more.Read More
Get data from almost any source (a database, the web, Excel, Sharepoint, Salesforce, OData etc), then clean, transform, merge and append data to your query. Load the data into Excel or Power Pivot for analysis, report preparation or export.Read More
Import millions of rows of data, create relationships between different data sources, and build interactive reports. Quickly transform huge volumes of data into meaningful information to get the answers you need.Read More
Designed to take you from zero to hero so you can confidently list 'Advanced Excel Skills' on your resume/CV. Starting with the essentials, then covering must-know skills like best workbook design, advanced formulas, pivot tables, conditional formatting, macros and much more.Read More
Learn the core concepts of the three primary financial statements : Income Statement, Balance Sheet and Cash Flow Statement. By understanding core concepts you can avoid common mistakes when working with these three statements. This course breaks down the modelling process into small segments that are easily digestible.Read More
Ideal for those involved in managing the daily operations of a business. Covering tasks such as calculating breakeven, optimizing shipping, allocating funds to maximize NPV/profit, or managing staff scheduling. Includes an introduction to Excel Solver and how to create Gantt Charts.Read More
Learning to use Pivot Tables will allow you to quickly summarise and analyse large amounts of data - with just a few clicks of your mouse. Quickly transform data into meaningful information, and create reports that are easy to update and change.Read More
Choose just one of these, or choose any combination of the three. Learn the core software tools any professional needs in a modern office environment.Read More
Use Excel's existing tools to make business decisions under uncertainty by performing Monte Carlo simulations, using Decision Trees and Forecasting with the Data Analysis Toolpak. Ideal for executives, analysts and all levels of business school students.Read More
Designed for professionals working in customer service or call center environments. Efficiently and accurately collect and analyze data. Create forecasts and generate clear, meaningful charts and reports. Boost your skills in handling customer service and call center information.Read More
Leverage Excel tools for financial analysis including Time value of Money functions, What-If analysis, Goal Seek, Amortization, Depreciation, and Solver Ideal for accountants, executives, analysts and all levels of business school students.Read More
Statistics for the non-statistician. Quickly and efficiently calculate and report the statistics of data and make decisions based on statistical output. Use the Excel Analysis Toolpak to generate descriptive statistics, histograms, correlations, regression, rank & percentile, random numbers, and sampling.Read More