intro to power query - home - codecinella · • independent consultant • visual basic for...

15
Power Query Get & Transform data in Microsoft Excel Dory Owen Oct 18, 2016

Upload: others

Post on 27-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

PowerQueryGet&TransformdatainMicrosoftExcel

DoryOwenOct18,2016

Page 2: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

[email protected]

• Independentconsultant• VisualBasicforApplications,Office,SQLServer,MySQL• When“NoIT”Or“LowIT”peopleneedagilesolutions• Followthe“copy&paste”tofindtargetsforautomation• Word:Policereports,insurancequotes• Access:Airportoperationsdata,JobCentertrainingschedule,meals-on-wheelsforseniorcenter• Excel:Salesforecast,configure/price/quote,self-serviceBI

Page 3: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

WhatisMicrosoftPowerQuery?

• Microsoftsays:“anewadd-inthatprovidesaseamlessexperiencefordata• discovery,• transformationand• enrichmentfor

• InformationWorkers,• BIprofessionals• andotherExcelusers.”

Huh?

Page 4: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

From:PowerPivotPro.com- RobCollie

Page 5: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

1st:GetData• Exceltable• awebpage• Oracle,SQLServer,MySQL• Salesforce,SAP,Hadoop,ADS• Textfilecontainingabiguglymainframereport• JSON,XML,CSV,Accessdb

Page 6: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

2nd:TransformData

Page 7: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Excel2010-13• Freedownload• Add-InappearsasatabontheExcelribbon

Page 8: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Excel2016hasPowerQuerybuilt-in

• OnDATAmenu,lookfortheGet&Transform group• Click“NewQuery”togetstarted…

Page 9: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Example:Textfilewithheaders,groupings

Page 10: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Example:Budgetvs.ActualMerged

• FromMynda Treacy’s blogathttp://www.myonlinetraininghub.com/category/power-query• Samples,tutorials,videos

Month Category Product BudgetSales1/1/2015 Beverages AppleJuice $1,724.981/1/2015 Seafood AtlanticSalmon $385.001/1/2015 Seafood BananaPrawns $1,503.901/1/2015 Grains/Cereals Barley $3,116.591/1/2015 DairyProducts Brie $285.181/1/2015 Produce Brocollini $349.201/1/2015 Seafood Calamari $1,300.261/1/2015 DairyProducts Camembert $3,229.40

Month Category Product ActualSales1/1/2015Beverages EnglishBreakfast 25127.361/1/2015DairyProducts Gouda 9116.81/1/2015Grains/Cereals Gnocchi 6931.21/1/2015Meat/Poultry PorkChops 5710.081/1/2015Meat/Poultry RumpSteak 5702.41/1/2015Meat/Poultry ChickenBreast 5154.851/1/2015Confections M&M's 5079.6

Page 11: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Creatingaconnectiononly

• Doesnotloadthedatatosheet• Mergeorappendtoanotherquery

Page 12: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Example:Nat’lWeatherServicewebsite

• http://w1.weather.gov/data/obhistory/KMSN.html• Madisonairport• Hourlyweatherdata• Past36hours

Page 13: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Example:WisconsinBreedingBirdAtlas

Datacollectedbyvolunteersaroundthestate5yearsofdatabeingcollected(2015-2019)Reports:http://ebird.org/ebird/atlaswi/subnational2/US-WI-025?atlasPeriod=EBIRD_ATL_WI_2015“025”=DaneCounty

Whatbirdshaven’tbeenconfirmedinwhichcountiesyet?…onlythecountiesI’mlikelytosurvey?

Page 14: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

ADDITIONALPOWERQUERYRESOURCES

ChrisWebbs Bloghttps://cwebbbi.wordpress.com/category/power-query

KenPuls Blogwww.excelguru.ca/blog

PowerQueryMFormulaReferencehttps://msdn.microsoft.com/en-us/library/mt211003.aspx

Page 15: Intro to Power Query - Home - Codecinella · • Independent consultant • Visual Basic for Applications, Office, SQL Server, MySQL • When “No IT” Or “Low IT” people need

Hands-onPowerQueryWorkshopSaturday,November5,20169:30AMto12:30PMMadisonPublicLibrary

www.meetup.com/codecinella-madison