Power Query Tutorial1
Power Query Tutorial1
Instructions for screen readers: After you go through the tip sheets in this tutorial, you'll learn how to quickly master chart elements. The
instructions for each sheet start in cell A1, and each subsequent step is in cell A2, A3, and so on.
The instructions will indicate which cells to navigate to for use of a feature, or further reading.
To start, press CTRL+PAGE DOWN.
Let's go >
Go back to top by pressing CTRL+HOME. To start the tour, press CTRL+PAGE DOWN.
Does this happen to you? You paste data into Excel, but then you have to clean it up. For example, in the data below, there ar
Does
First, thiswant
you might happen tocolumn
to split this you?intoYoutwopaste data
columns: Oneinto Excel,
for first name,but then
and one youname...
for last have to clean it up. F
You might also want to remove "12:00 AM" from the last column, since it's repetitive and unnecessary.
example, in the data below, there are a couple things you might want to do...
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
Previous
Feedback
ple, in the data below, there are a couple things you might want to do...
ou have to clean it up. For
want to do...
RL + PAGE UP.
Next
You could clean up the data manually, but this can be time consuming...
YouYou
couldcould
fix this byclean
adding up the
a new data
column manually,
for the last names, but thisyou
and then can becuttime
could consuming...
and paste the last names into that new c
...You could also reformat the last column to exclude "12:00 AM," but that's a lot of work…
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
You could fix this by adding a new column for the last names, and then
you could cut and paste the last names into that new column...
Previous
Feedback
nsuming...
e the last names into that new column…
RL + PAGE UP.
Next
Forget manually cutting, pasting, and reformatting. A better way to clean up data is to use Power Query.
To Forget manually
continue with this tutorial,cutting,
press CTRL pasting, and
+ PAGE DOWN. reformatting.
To go A better
to the previous sheet, way
press CTRL to clean
+ PAGE UP. up data is
Power Query.
Previous
Feedback
y to clean up data is to use
Next
What is Power Query? It's a special editor that allows you to clean data so that it's easier to work with.
TheWhat
original is Power
data Query?
can be found in cellsIt's
B11athrough
special
D15.editor that allows you to clean data so that it's easie
Then we used Power Query to create the cleaned up data table found in cells H11 through K15.
with.
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
This is the original data... ... then we used Power Query... ... and now it's clean
Previous
Feedback
an data so that it's easier to work
RL + PAGE UP.
Next
Another great thing about Power Query: If you add new data that's "dirty," Power Query can clean that up too, with just a clic
Another
Cells B7 throughgreat thing
D12 contain data.about
There arePower Query:
three columns: If you
Product, Salesadd new
rep, and data
Order that's
date. "dirty,"hasPower
Each column Qu
various valu
Cells G7 through J12 contain data. There are three columns: Product, First name, Last name, and Order date. Each column has
clean that up too, with just a click of a button. Try it out below!
TRY THIS: If you see the Enable Content button at the top of Excel, select it (ALT+F, N). Then type your first and last name into
...Then on the Data tab, click Refresh All (ALT+A, R). You'll see that Power Query added the new row for Kiwis, and it cleaned u
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
Product Sales rep Order date Product First name Last name
Bananas Anne Cho 1/15/18 12:00 AM Bananas Anne Cho
Plums Tim Anders 1/15/18 12:00 AM Plums Tim Anders
Pears Jan Kotas 1/20/18 12:00 AM Pears Jan Kotas
Apples Sam Ioto 1/20/18 12:00 AM Apples Sam Ioto
Kiwis 5/20/24 12:00 AM Kiwis
Previous
Feedback
lean that up too, with just a click of a button. Try it out below!
that's "dirty,"hasPower
e. Each column Query
various values forcan
each row.
nd Order date. Each column has various values for each row.
pe your first and last name into cell C12.
w row for Kiwis, and it cleaned up the data by splitting your first name into cell H12 and your last name into cell I12.
RL + PAGE UP.
Order date
01/15/18
01/15/18
01/20/18
01/20/18
04/01/24
Next
Why do they call it Power Query? Between the original data, and the clean data, there's a powerful query that links the two.
Why
Cells do they
B7 through call it
D11 contain Power
data. Query?
There are Between
three columns: the
Product, original
Sales rep, anddata, andEach
Order date. thecolumn
cleanhas data, there
various valu
Cells G7 through J11 contain data. There are four columns: Product, First name, Last name, and Order date. Each column has v
powerful query that links the two.
IMPORTANT DETAIL: Between the original data and the clean data, there's a query. The query contains all of the cleaning step
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
Product Sales rep Order date Product First name Last name
Bananas Anne Cho 1/15/18 12:00 AM Bananas Anne Cho
Plums Tim Anders 1/15/18 12:00 AM Plums Tim Anders
Pears Jan Kotas 1/20/18 12:00 AM Pears Jan Kotas
Apples Sam Ioto 1/20/18 12:00 AM Apples Sam Ioto
IMPORTANT DETAIL
Between the original data and the clean data, there's a
query. The query contains all of the cleaning steps, so
you don't have to redo them again if new data is added.
All you have to do is click Refresh, and Power Query
cleans it up automatically.
Previous
Feedback
werful query that links the two.
nd thecolumn
te. Each cleanhas data, there's
various a each row.
values for
nd Order date. Each column has various values for each row.
contains all of the cleaning steps, so you don't have to redo them again if new data is added. All you have to do is select Refresh (Alt+A, R
TRL + PAGE UP.
Order date
1/15/2018
1/15/2018
1/20/2018
1/20/2018
Next
do is select Refresh (Alt+A, R), and Power Query cleans it up automatically.
There are three main steps to using Power Query: Get Data, Transform, and Load.
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
There are three main steps to using Power Query: Get Data, Transform, and Load.
Previous
Feedback
L + PAGE UP.
ansform, and Load.
Next
The first step is Get Data. This is simply the process of getting your data into Power Query. We'll show you how this works in th
To The
continuefirst
withstep is Get
this tutorial, Data.
press CTRL +This
PAGEis simply
DOWN. the
To go process
to the previousof getting
sheet, your+ PAGE
press CTRL dataUP.into Power Qu
We'll show you how this works in the videos coming up.
Previous
Feedback
show you how this works in the videos coming up.
Lur dataUP.
+ PAGE into Power Query.
Next
Transform is the second step, where you use Power Query to transform, or, clean the data. We'll walk you through this in the
Transform
EXCEL SPEAK: Why isthethe
word,second step,
"Transform?" Well,where you
you can do use
more Power
than Query
just clean toYou
the data. transform, or, clean
can add or remove the fi
columns,
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
We'll walk you through this in the upcoming videos as well.
EXCEL SPEAK
Why the word, "Transform?" Well, you can do more
clean the data. You can add or remove columns, filte
custom calculations, and a lot more.
Previous
Feedback
l walk you through this in the upcoming videos as well.
ansform, or, clean
can add or remove the filter,
columns, data. add custom calculations, and a lot more.
L + PAGE UP.
Next
And finally, Loading is the last step. This is the act of returning the cleaned-up, transformed data back into Excel.
To And
continuefinally,
with thisLoading isCTRL
tutorial, press the+ last step. To
PAGE DOWN. This is the
go to theprevious
act ofsheet,
returning the
press CTRL cleaned-up,
+ PAGE UP.
transformed data back into Excel.
Previous
Feedback
back into Excel.
he cleaned-up,
L + PAGE UP.
Next
And keep in mind: Power Query isn't just for cleaning up pasted data. You can import and transform data from other sources,
And
Cells keepI14incontain
F9 through mind: Power
data. Query
There are isn't just
four columns: Year,for cleaning
Champions, up pasted
Runners-up, Third data. Youcolumn
place. Each can import
has variousa
CHECK THIS OUT: In this example we used Power Query to get data from Wikipedia's FIFA World Cup page. You can imagine o
transform data from other sources, like a file, a database, or even a web page.
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
Previous
Feedback
m data from other sources, like a file, a database, or even a web page.
a.Each
e. Youcolumn
can import
has variousand
values for each row.
p page. You can imagine other useful sources you might pull data from.
eb page.
Next
Before we show you how to use Power Query, we should warn you that its window, called the Power Query Editor, is large an
Before
GOOD weYou
TO KNOW: showcan't you
use thehow to usewhile
Excel window Power Query,
the Power Query it's worth
Editor is open.noting that
However, onceits window,
you're calle
done transform
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
Power Query Editor, is large and may cover Excel. This is expected.
GOOD TO KNOW
You can't use the Excel w
while the Power Query Ed
open. However, once you
done transforming the da
you can close the editor.
point, you'll able to work
Excel window again.
Previous
Feedback
ower Query Editor, is large and may cover Excel. This is expected.
that
er, onceits window,
you're called the
done transforming the data, you can close the editor. At that point, you'll able to work in the Excel window again.
L + PAGE UP.
GOOD TO KNOW
You can't use the Excel window
while the Power Query Editor is
open. However, once you're
done transforming the data,
you can close the editor. At that
point, you'll able to work in the
Excel window again.
Next
Excel window again.
In fact, if you have two monitors, we recommend moving the Power Query Editor window to the second monitor so that you c
Two Inmonitors
fact, if you
side have
by side twoopened
with Excel monitors, wePower
on one and recommend
Query editormoving the Power Query Editor win
on the other.
If you have two monitors, put the Excel window in one…
to the second monitor so that you can view Excel at the same time for reference.
... and put the Power Query Editor in the other.
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
If you have two monitors, put the ... and put the Power Query Editor
Excel window in one... in the other.
Previous
Feedback
e second monitor so that you can view Excel at the same time for reference.
ower Query Editor window
for reference.
L + PAGE UP.
r Query Editor
her.
Next
Start the videos
Start the videos
1. Take a look at the sheets at the bottom of this workbook. You'll see sheets for Import data from web, Categories, and Sales
2. Where are the videos? They'll appear in a web browser after you click the link in step 4.
3. Keep in mind, there are several videos, so make sure to bookmark the page. That way you can return to them in case you ne
1 the
4. Watch Take a look at the
Power Query videos. 2 Where are the videos? 3 Keep in mind, there are 4
sheets at the bottom They'll appear in a web several videos, so make
To continue with this tutorial, press CTRL + PAGE DOWN. To go to the previous sheet, press CTRL + PAGE UP.
of this workbook. browser after you click sure to bookmark the
You'll see sheets for the link in step 4. page. That way you can
Import data from return to them in case
web, Categories, and you need to take a break.
Sales Data ... You'll
work with these sheets
while you watch the
videos.
Previous
Feedback
m web, Categories, and Sales Data ... You'll work with these sheets while you watch the videos.
Next
Event Date
Savery explosion 1716
Brunton's Mechanical Traveller July 31, 1815
SS Washington 1816
SS Constitution 1817
The Aetna May 15, 1824
SS Teche 1825
Stockton and Darlington Railway locomotive no. 2 or no. 5 March 19, 1828
Stockton and Darlington Railway Locomotion No. 1 July 1, 1828
SS Helen McGregor February 24, 1830
Best Friend of Charleston June 17, 1831
Locomotive under test November 1834
Liverpool and Manchester Railway No. 33 Patentee November 12, 1834
PS Union 1837
SS Moselle April 28, 1838
SS Pulaski June 14, 1838
New York and Harlem Railroad July 4, 1839
Surprise November 10, 1840
SS Henry Eckford April 27, 1841
Philadelphia and Reading Railroad Richmond September 2, 1844
London and North Western Railway 122 Goliah 1847
Great Western Railway Goliah June 29, 1849
London and North Western Railway 401 1850
Firth Woollen Mill 1850
Hague Street explosion February 4, 1850
Midland Railway 363 (ex Bristol and Gloucester Railway 7 Wickwar) January 8, 1853
Erie Railroad June 16, 1853
SS Canemah August 8, 1853
SS Shoalwater May 1853
SS Gazelle April 8, 1854
Fieldhouse Mills July 15, 1855
Georgiana November 23, 1855
SS Pennsylvania June 13, 1858
London and North Western Railway 249 July 4, 1861
Erie Railroad October 25, 1862
Great Western Railway Perseus November 1862
Hembrigg Mills June 27, 1863
SS Ada Hancock April 23, 1863
Tugboat Greenwood June 15, 1863
Calcutta explosion 1863
Merrick Sons, Southwark Foundry April 6, 1864
USS Chenango April 15, 1864
Midland Railway 356 May 5, 1864
Great Northern 138 May 5, 1864
? 108 1864
New York Central Railroad June 18, 1864
USS Tulip November 11, 1864
Eclipse (steamboat) January 27, 1865
Sultana April 27, 1865
Staten Island Ferry Westfield II July 30, 1871
Spa Well Mill December 15, 1873
Town & Son Factory June 9, 1869
SS Senator May 6, 1875
HMS Thunderer July 14, 1876
Boston Stamping Company, under Seavey & Co. April 6, 1878
Railway explosion December 21, 1881
Queensland Railways 1890
North East Dundas Tramway June 18, 1892
Annie Faxon April 14, 1893
Zeehan May 1, 1899
Great Eastern Railway No. 522 September 25, 1900
Grover Shoe Factory disaster March 20, 1905
HMS Implacable July 12, 1905
USS Bennington July 21, 1905
T.J. Salts Lumber Company August 7, 1905
HMS Implacable August 16, 1906
Hemingway Paint & Colour Manufacturers August 23, 1907
Central of Georgia Railway October 12, 1907
Boiler house at Laura coal mine September 15, 1908
Rhymney Railway 97 1909
Morewood Lake Ice Company explosion December 29, 1910
SS Sarah Dixon January 18, 1912
Southern Pacific Roundhouse March 18, 1912
Rumney Shed April 21, 1912
SS City of Liverpool February 24, 1913
SS James T. Staples January 10, 1913
Destroyer Ikazuchi October 9, 1913
Southern Pacific 4037 February 14, 1914
Maine Central Railroad 1915
Medina-Salamanca Railway No.2 January 10, 1918
London and North Western Railway 132 November 11, 1921
Southern Pacific 4017 September 12, 1929
LMS 6399 Fury February 10, 1930
Southern Pacific 4402 December 25, 1931
Elkhorn Piney Coal Company January 27, 1934
Deutsche Reichsbahn 02 101 April 3, 1939
Southern Pacific 4199 May 3, 1941
Canadian National 242 August 9, 1941
Pennsylvania Railroad 520 November 14, 1942
SS Cascades 1943
New York Central Railroad J-3a No. 5450 while hauling the 20th Century Limited September 7, 1943
USATC S160 Class 1943, 1944
Great Northern 2581 January 9, 1947
RL Smith Lumber Company 91 February 14, 1948
Chesapeake and Ohio Railway locomotive no. 3020 May 12, 1948
Union Pacific 9018 October 20, 1948
Deutsche Reichsbahn 95 6679 May 4, 1951
Chesapeake and Ohio Railway 1642 June 9, 1953
British Railways January 24, 1962
New York Telephone Company building explosion October 3, 1962
USS Basilone February 5, 1973
Deutsche Reichsbahn 01 1516 November 27, 1977
Gettysburg Railroad 1278 June 16, 1995
USS Willamette June 29, 1995
Ford River Rouge complex 2 February 1999
Medina County Fair Ground July 29, 2001
SS Norway May 25, 2003
British Columbia Institute of Technology (BCIT) May 20, 2005
St Mary's General Hospital 15 July 2006
Dana Corporation 400-hp fire-tube boiler 19 June 2007
Orewa College June 24, 2009
Loy-Lange Box Company April 3, 2017
Type Nation
Industrial United Kingdom
Locomotive United Kingdom
Marine (civilian) United States
Marine (civilian) United States
Marine (civilian) United States
Marine (civilian) United States
Locomotive United Kingdom
Locomotive United Kingdom
Marine (civilian) United States
Locomotive United States
Locomotive United States
Locomotive United Kingdom
Marine (civilian) United Kingdom
Marine (civilian) United States
Marine (civilian) United States
Locomotive United States
Locomotive United Kingdom
Marine (civilian) United States
Locomotive United States
Locomotive United Kingdom
Locomotive United Kingdom
Locomotive United Kingdom
Industrial United Kingdom
Industrial United States
Locomotive United Kingdom
Locomotive United States
Marine (civilian) United States
Marine (civilian) United States
Marine (civilian) United States
Industrial United Kingdom
Marine (civilian) United States
Marine (civilian) United States
Locomotive United Kingdom
Locomotive United States
Locomotive United Kingdom
Industrial United Kingdom
Marine (civilian) United States
Marine (civilian) United States
India
Industrial United States
Marine (military) United States
Locomotive United Kingdom
Locomotive United Kingdom
Locomotive United Kingdom
Locomotive United States
Marine (military) United States
Marine (military) United States
Marine (civilian) United States
Marine (civilian) United States
Industrial United Kingdom
Industrial United Kingdom
Marine (civilian) United States
Marine (military) United Kingdom
Industrial United States
Locomotive Australia
Locomotive Australia
Locomotive Australia
Marine (civilian) United States
Locomotive Australia
Locomotive United Kingdom
Industrial United States
Marine (military) United Kingdom
Marine (military) United States
Industrial United States
Marine (military) United Kingdom
Industrial United Kingdom
Locomotive United States
industrial Netherlands
Locomotive United Kingdom
Industrial United States
Marine (civilian) United States
Locomotive United States
Locomotive United Kingdom
Marine (civilian) United Kingdom
Marine (civilian) United States
Marine (military) Japan
Locomotive United States
Locomotive United States
Locomotive Spain
Locomotive United Kingdom
Locomotive United States
Locomotive United Kingdom
Locomotive United States
Locomotive United States
Locomotive Germany
Locomotive United States
Locomotive Canada
Locomotive United States
Marine (civilian) United States
Locomotive United States
Locomotive United Kingdom
Locomotive United States
Locomotive United States
Locomotive USA
Locomotive United States
Locomotive East Germany
Locomotive United States
Locomotive United Kingdom
Stationary power United States
Marine (military) United States
Locomotive East Germany
Locomotive United States
Marine (military) United States
Industrial United States
Antique steam tractor United States
Marine (civilian) United States
Stationary Canada
Stationary United States
Industrial United States
Industrial New Zealand
Industrial United States
City/Locale Killed Injured
1
Philadelphia, England 16
Marietta, Ohio 12 5
Mississippi River 30
New York City, New York 10 40
Mississippi River 20
Simpasture, near Shildon, England 1 1
Aycliffe Lane, Heighington, England 1
Memphis, Tennessee
Charleston, South Carolina 1 3
Baltimore and Ohio Railroad, Baltimore, Maryland 1
Whiston Bank, Whiston, England
Hull, England 23 20
Cincinnati, Ohio 81 13
Cape Hatteras, North Carolina 128
14th Street, New York City, New York 2 5
Bromsgrove railway station, Bromsgrove, England 2
New York City, New York 1 2
Reading, Pennsylvania 4
1
Near Richvale, California
Powellton, West Virginia 16
Cooper, California 4
Montreal, Quebec 1 1
Cresson, Pennsylvania 2 4
Portland, Oregon
Canastota, New York 3
55
3
Unverified report
0
Copy this URL:
https://en.wikipedia.org/wiki/List_of_boiler_explosions
Product Name Category
Apples Produce
Beer Beverages
Coffee Beverages
Green Tea Beverages
Pears Produce
Plums Produce
txt_ProdNam txt_SalesRep dt_OrderDate dbl_Sales
Beer Anne Hellung-Larsen 1/15/2018 0:00 14,000.36
Plums Anne Hellung-Larsen 1/15/2018 0:00 1,050.42
Total Sales Rep 15,050.78
Pears Jan Kotas 1/20/2018 0:00 3,000.51
Apples Jan Kotas 2/20/2018 0:00 5,300.04
Plums Jan Kotas 2/20/2018 0:00 350.13
Total Sales Rep 8,650.68
Coffee Mariya Sergienko 2/27/2018 0:00 9,200.97
Total Sales Rep 9,200.97
Green Tea Anne Hellung-Larsen 3/10/2018 0:00 13,800.89
Total Sales Rep 13,800.89
Coffee Mariya Sergienko 3/24/2018 0:00 5,980.40
Total Sales Rep 5,980.40
Beer Nancy Freehafer 4/5/2018 0:00 12,180.68
Total Sales Rep 12,180.68
Beer Michael Neipper 4/8/2018 0:00 42,000.42
Total Sales Rep 42,000.42
Apples Mariya Sergienko 5/24/2018 0:00 2,000.39
Plums Nancy Freehafer 5/24/2018 0:00 52.50
Coffee Nancy Freehafer 6/7/2018 0:00 2,300.20
Total Sales Rep 4,353.09
Apples Andrew Cencini 6/23/2018 0:00 15,900.61
Pears Andrew Cencini 6/23/2018 0:00 9,000.24
Total Sales Rep 24,900.85