Power Query for Parsing Data

Similar documents
Office 2016 Excel Basics 25 Video/Class Project #37 Excel Basics 25: Power Query (Get & Transform Data) to Convert Bad Data into Proper Data Set

Making Excel Work for Your Tribal Community

Microsoft Power Tools for Data Analysis #5 Power Query: Append All Tables in Current Workbook Notes from Video:

Index A, B, C. Rank() function, steps, 199 Cloud services, 2 Comma-separated value (CSV), 27

Excel Tables and Pivot Tables

Creating an Excel Pivot Table Manually

Shawn Dorward, MVP. Getting Started with Power Query

Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced

Excel Flash Fill. Excel Flash Fill Example

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature

Advanced Excel for EMIS Coordinators

Watch the video below to learn more about freezing panes in Excel. *Video removed from printing pages. To freeze rows:

Excel Tutorials - File Size & Duration

ADVANCED INQUIRIES IN ALBEDO: PART 2 EXCEL DATA PROCESSING INSTRUCTIONS

Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1

Sort, Filter, Pivot Table

Course Title: Intermediate Excel (Version :2013/2016) Duration : 2 days

Sample Chapters. To learn more about this book, visit the detail page at: go.microsoft.com/fwlink/?linkid= Copyright 2010 by Curtis Frye

Quick Guide for Excel 2015 Data Management November 2015 Training:

New Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts

10 Ways To Efficiently Analyze Your Accounting Data in Excel

MS Office 2016 Excel Pivot Tables - notes

Shawn Dorward, MVP. Getting Started with Power Query

Excel 2010 Tutorials - Video File Attributes

2013 ADVANCED MANUAL

2. create the workbook file

Excel 2007 Tutorials - Video File Attributes

Microsoft Power Tools for Data Analysis #04: Power Query: Import Multiple Excel Files & Combine (Append) into Proper Data Set.

To complete this workbook, you will need the following file:

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

Excel Tables & PivotTables

Service Line Export and Pivot Table Report (Windows Excel 2010)

PART 7. Getting Started with Excel

Microsoft Access 2010

2013 INTERMEDIATE MANUAL

Chapter at a glance. Analyze. Filter. Format. Create. Analyze data dynamically by using PivotTables, page 288

Learning Map Excel 2007

Microsoft How to Series

Microsoft Excel Pivot Tables & Pivot Table Charts

Creating Pivot Charts

How to Excel - Part 2

Working with Data in Microsoft Excel 2010

1. Two types of sheets used in a workbook- chart sheets and worksheets

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

Microsoft Access 2013

Workbooks (File) and Worksheet Handling

Microsoft Access 2013

Excel 2003 Tutorials - Video File Attributes

Access 2016 Essentials Syllabus

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column.

Creating a Crosstab Query in Design View

SPREADSHEETS. (Data for this tutorial at

EXCEL 2010 TIPS & TRICKS

Dealing with the way Mail Merge changed in MS Word 2003

WAAT-PivotTables Accounting Seminar

Intro to Excel. To start a new workbook, click on the Blank workbook icon in the middle of the screen.

Creating a Spreadsheet by Using Excel

Pivot Tables and Pivot Charts Activities

Excel Training - Beginner March 14, 2018

Table of Contents. Tip 1: Page setup 3. Tip 2: Printing different ranges in a spreadsheet 5. Tip 3: Ensuring that a long formula is displayed 6

European Computer Driving Licence. Advanced Spreadsheet Software BCS ITQ Level 3. Syllabus Version 2.0

Microsoft Excel 2016 LEVEL 3

Using Microsoft Excel

COMM 391 Winter 2014 Term 1. Tutorial 1: Microsoft Excel - Creating Pivot Table

Excel. Dashboard Creation. Microsoft # KIRSCHNER ROAD KELOWNA, BC V1Y4N TOLL FREE:

ENTERING DATA & FORMULAS...

Pivot Tables, Lookup Tables and Scenarios

A Quick Trick for Hiding Duplicate Excel Values

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

Microsoft Excel 2013/2016 Pivot Tables

Excel Tips for Compensation Practitioners Month 1

Working with Tables in Word 2010

Creating Simple Report from Excel

Create your first workbook

Getting Started Guide

Contents. Introduction 15. How to use this course 18. Session One: Basic Skills 21. Session Two: Doing Useful Work with Excel 65

Starting Excel application

Get Data from External Sources Activities

Tips & Tricks: MS Excel

Creating Automated Dashboard Excel 2013 Contents

Using Microsoft Excel

239 Excel Keyboard Shortcuts

Microsoft MOS-EXP. Microsoft Excel 2002 Core.

Acknowledgements About the Author Starting off on the Right Foot p. 1 Basic Terminology p. 2 Title Bar p. 3 Menu Bar p. 3 Active Cell p.

1.a) Go to it should be accessible in all browsers

CIPHR Report Designer

Deep Dive: Pronto Transformations Reference

Microsoft Excel Pivot Tables & Pivot Table Charts

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

Word Module 5: Creating and Formatting Tables

Microsoft Power Tools for Data Analysis #7 Power Query 6 Types of Merges/ Joins 9 Examples Notes from Video:

COURSE CONTENT Excel with VBA Training

course notes quick reference guide

Excel Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. 6. You can use a table s sizing handle to add columns or rows to a table.

Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office

Course Title: Microsoft Office ( 2016)

Copyright & License Notes 3 Introduction 13 Chapter 1 - Excel Basics 14. Chapter 2 - Working with Data 32

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex

Building Self-Service BI Solutions with Power Query. Written By: Devin

Transcription:

Excel Power Query

Power Query for Parsing Data

Data Models Screen 1In Excel 2010 and 2013 need to install the Power Query; however, in 2016 is automatically part of the Data Tab ribbon and the commands are located in the Get & Transform Group. Data Model is datasets that are not together. In other words, tables that need to be linked to extract data from two or more tables. 1. Open 1. Data Model file 2. See in the Design Tab under Table Tool contextual tab. The table names in the Properties Group. 3. The table names are Transactions, Managers, and Availability. When the tables are created you need to select the headings as well. 4. Explore each table and the Transactions table is comprised of information from the other two tables.

Data Models Screen 2 5. The Transactions table has repeated items while the other two does not have repeated items. 6. How many specialty shakes were made during Leo's Shift? The answer 31 7. We need set up the relationships between the three tables. 8. Click on Data Tab > Relationships in the Data Tools Group > New

Data Models Screen 3 9. Foreign keys can have repeated data in the column you need to use in the table like in Transactions table Primary keys have NO repeats in the column you need to use in the table and they are used as the lookup tables. We want to form a one-to-many relationships. Create each relationships and Close when relationships are created.

Data Models Screen 4 a. Flavors columns will act as the Primary key in the Availability table and Flavors column will act as the Foreigner key in the Transactions table. b. Time of Day column will act as the Primary key in the Managers table and Time of Day column will act as the Foreigner key in the Transactions table.

Data Models Screen 5 10. Click in the Transactions table and click on the Insert Tab > Pivot Table > New Worksheet > Add this to Data Model ( Data Model is a relationship database looking at several tables at once).

Data Models Screen 6 11. In the Pivot Table Field List, click All and click on each triangle to expand the list of fields for each table. Place fields in Row and Values sections.

Data Models Screen 7 12. Below the Transactions table on the Sheet 1 has extra data. 13. Move the data to be part of the table. 14. Click on the Pivot table sheet and click on Refresh in the Analysis Tab. 15. How many specialty shakes were made during Leo's Shift? The answer 34

Parsing Data Screen 1 1. Open 2A. Parsing Text with Get & Transform. 2. When the table is created by Insert > Table, you need to select the headings as well. 3. The data has been inserted as a table. See in the Design Tab under Table Tool contextual tab that the table name is Table1 in the Properties Group. 4. We want to parse out each item into separate columns. 5. Click in the table and click on Data Tab > From Table

Parsing Data Screen 2 6. The Query Editor opens up and on the right side, you see the steps are going to be performed will be recorded in this area.

Parsing Data Screen 3 7. Click on Split Colum > By Delimiter > Semicolon > Each occurrence of the delimiter

Parsing Data Screen 4 RESULTS

Parsing Data Screen 5 8. Now we want to parse out the.com.org etc. from the emails using the new table. 9. Select the email column.

Parsing Data Screen 6 10. Click on Split Colum> By Delimiter > > Custom > type a period > Right-most delimiter.

Parsing Data Screen 7 10. Click on Split Colum> By Delimiter > > Custom > type a period > Right-most delimiter.

Parsing Data Screen 8 RESULTS

Parsing Data Screen 9 11. Click on Close & Load

Parsing Data Screen 10 RESULTS

Parsing Data Screen 11 12. Below in the original table in Parse Text sheet has extra data. 13. Select and move the data to be part of the table.

Parsing Data Screen 12

Parsing Data Screen 13 14. Right click on the Workbook Queries on the right side and choose Refresh. This command places you into the new sheet.

Parsing Data Screen 14 15. With the 2 rows added to the 37 rows in the new query table now makes the table have 39 rows.

Power Query for Finding Duplicates

Finding Duplicates Screen 1 Find a list of people who are in both and place it one sheet. 1. Open 3. Inner Join Example 2. Rename each table to match the table information by clicking: Table Tools Tab > Design Tab In Properties Group > Click in the Table Name box Enter the new table name and Enter

Finding Duplicates Screen 2 3. Click one table and click on Data Tab > From Table > Load & Close. Repeat these actions with the other table.

Finding Duplicates Screen 3 3. Click one table and click on Data Tab > From Table > Load & Close. Repeat these actions with the other table.

Finding Duplicates Screen 4 RESULTS

Finding Duplicates Screen 5 4. Right Click on the first table name in the Query Workbooks pane and choose merge.

Finding Duplicates Screen 6 5. We need to choose the name of the table and the column where it needs to match with the other table and column.

Finding Duplicates Screen 7 5. We need to choose the name of the table and the column where it needs to match with the other table and column.

Finding Duplicates Screen 8 6. Click on Close & Load

Finding Duplicates Screen 9 RESULTS

Power Query for Normalizing Tables

Normalizing Tables Screen 1 In order to pivot tables, sort tables, or filter tables; they must be normalized. Normalized means each record (or row) contains information that describes the data. To this quickly, Power Query does the transformation in seconds.

Normalizing Tables Screen 2 1. Open 4. Unpivot Example 2. Select the Table and click on Data Tab > From Table. 3. Select the column that needs to be filled and click on Transform Tab. 4. Choose the Fill command > Down.

Normalizing Tables Screen 3 RESULTS

Normalizing Tables Screen 4 5. Select the columns that need to be unpivot which are January to October. 6. Click on the January header and then Shift+Click on October. 7. Then on the Transform Tab > Unpivot Columns. See other choices.

Normalizing Tables Screen 5 RESULTS

Normalizing Tables Screen 6 8. Click on Close & Load

Normalizing Tables Screen 7 RESULTS

Normalizing Tables Screen 8 9. Below in the original table in Sheet1 has extra data. 10. Select and move the data to be part of the table.

Normalizing Tables Screen 9 11. Right click on the Workbook Queries on the right side and choose Refresh.

Normalizing Tables Screen 10 12. With the 4 rows containing 10 months will convert this information into 40 new rows. Added to the existing 120 rows makes the new table have 160 rows.

Power Query for Merging Tables with Empty Cells

Merging Tables Screen 1 When you need to consolidate multiple tables, let Power Query do all the work. 1. Open 5. Merge Order Sheet file 2. We need to fix the worksheets where the Branch is repeated down the column. 3. Format each table as Table by Insert Tab > Table > OK on each sheet also include headings. Name each table for each region.

Merging Tables Screen 2 4. Select each table and click on Data Tab > From Table > Transform Tab > Fill > Down where customer column is selected. 5. Close & Load To > Only Create Connection > Load in order to connect all tables. 6. Repeat for all tables. Fill Down on the Home tab on normal sheet does not work. You need to use Power Query.

Merging Tables Screen 3 4. Select each table and click on Data Tab > From Table > Transform Tab > Fill > Down where customer column is selected. 5. Close & Load To > Only Create Connection > Load in order to connect all tables. 6. Repeat for all tables.

Merging Tables Screen 4 The Workbook Queries has the four tables with Connection Only.

Merging Tables Screen 5 7. Right click in the Workbook Queries pane the first table and choose Append.

Merging Tables Screen 8. Choose Three or more tables. 6

Merging Tables Screen 7 9. Add the other three tables to the right side. 10. Choose OK

Merging Tables Screen 8 11. Click on Close & Load The NorthEast table has 94 records The East table has 50 records The South table has 28 records The NorthWest table has 38 records. After the Append command, the new table has 210 records.

Merging Tables Screen 9 RESULTS

Flash Fill Make sure that your Flash Fill is activated. Go to File > Options > Advanced > Editing Options > check Automatically Flash Fill. or by pressing Ctrl+E which it is not the centering command but a Flash Fill command and the new information must reside in a cell next to a table. If Flash Fill is turned on but doesn t start automatically when you type data that matches a pattern, try starting it manually by clicking Data > Flash Fill

Excel Flash Fill

Flash Fill Make sure that your Flash Fill is activated. Go to File > Options > Advanced > Editing Options > check Automatically Flash Fill. or by pressing Ctrl+E which it is not the centering command but a Flash Fill command and the new information must reside in a cell next to a table. If Flash Fill is turned on but doesn t start automatically when you type data that matches a pattern, try starting it manually by clicking Data > Flash Fill

Flash Fill Tips To use Flash Fill you need to be in the column adjacent to the column(s) containing your original data. Format your headers different to your data to help Excel know that the top row is a header so it won t use it in determining the pattern. Give Flash Fill an example of the final result you want for every permutation in your data. This will help it accurately determine the pattern. Beware, sometimes it gets the pattern wrong, other times it ll leave them blank. If it leaves blanks then you can just go and add an example for the remaining items and it ll finish the job. If it makes a mistake you can just correct one of the entries and it will fix the rest by backspacing, edit and enter.

Flash Fill Screen 1

Flash Fill Screen 2

Flash Fill Screen 3

Flash Fill Screen 4

Flash Fill Screen 5

Flash Fill Screen 6

Flash Fill Screen 7

Flash Fill Screen 8

Flash Fill Screen 9

Flash Fill Screen 10

Thank You