Microsoft Excel Power Query
Microsoft Excel Power Query
Power Query
Self‐Service Business Intelligence
Acknowledge:
Linda
• Oklahoma Office, Senior Manager
O’Neal
Rachel
• Oklahoma Office, Compliance Manager
Loudon
www.finley‐cook.com
Presented By:
Didi
Santeco
• 12/1/2015 • HAWAII
• 12/01/15 • HI
• Dec. 1, 2015 • Hi
• December 1, 2015 • Hawai’i
• 1 Dec 2015 • Hawaii
Download & System
Requirements:
• https://www.microsoft.com/en‐
us/download/details.aspx?id=39379
Add‐In:
• In Excel, navigate File >
Options
• Add‐Ins > Manage
• Select COM Add‐ins
• Click Go…
Add‐In:
• In COM Add‐Ins, check the box for Microsoft Power Query for
Excel.
• Click OK. POWER QUERY ribbon will appear in your Excel.
Get External Data:
• Data can be extracted from different types of sources.
Example 1:
• http://www.gapminder.org/data
• Search: population total
• Right‐click on Excel and Copy link address
Example 1:
• In Excel, in POWER QUERY ribbon, click From Web
• Paste the link address
• Click OK
Example 1:
• Select Data, click Edit to open the Query Editor
Example 1:
• Review columns, remove columns with null, they are not
usable. In one of the selected column headers, right‐click,
select Remove Columns.
Example 1:
• The column header is in row 1. Click Use First Row As Headers
to move data in row 1 to become column headers.
Example 1:
• Select all the year columns, in one of the selected column
headers, right‐click, select Replace Values. Find null and
replace with 0.
Example 1:
• With all the year columns selected, in one of the column
headers, right‐click, select Unpivot Columns.
Example 1:
• Modify the column headers now that the data has been
unpivoted. (Country, Year, and Population)
• Repeat the steps to extract the other Excel file for Hawaii
Island Sales.
Example 2:
• In POWER QUERY ribbon, click From File, select From CSV.
• Navigate to the file folder, select the .csv file, click OK.
• Note that the query editor will open a .csv or .txt file right
away without the Navigator page, and the Query name is
defaulted to the original file name.
Example 2:
• Review the data, the column headers, and the query name.
Make adjustments as needed.
• Click Close & Load and select Close & Load.
Example 2:
• In POWER QUERY ribbon, click From File, select From Text.
• Navigate to the file folder, select the .txt file, click OK.
• Note that the query editor will open a .csv or .txt file right
away without the Navigator page, and the Query name is
defaulted to the original file name.
Example 2:
• Review the data, the column headers, and the query name.
Make adjustments as needed.
• Click Close & Load and select Close & Load.
Example 2:
• Right‐click on Oahu Sales and select Append.
• The query is generated with the data from all the files in the
file folder. Rename the query if needed.
Example 4:
• Click Close & Load and select Close & Load.
Extract ‐> Transform ‐> Load (ETL)
Didi Santeco, Business Consultant
Telephone: 405‐395‐5150
Email: dsanteco@finley‐cook.com