Create a Relationship to build a Pivot Table

Similar documents
Create a Relationship to build a Pivot Table

Microsoft Excel 2013/2016 Pivot Tables

Pivot Tables and Pivot Charts Activities

Microsoft Power Tools for Data Analysis #13 Power Pivot Into #1: Relationships Rather Than VLOOKUP Notes from Video:

Creating Automated Dashboard Excel 2013 Contents

Sort, Filter, Pivot Table

Contents. Group 2 Excel Handouts 2010

Pivot Tables, Lookup Tables and Scenarios

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

Ms excel. The Microsoft Office Button. The Quick Access Toolbar

Excel Tables and Pivot Tables

Office 2016 Excel Basics 21 Video/Class Project #33 Excel Basics 21: Relationships Rather than VLOOKUP for PivotTable Reports (Excel 2016 Data Model)

PivotTables & Charts for Health

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

Microsoft Excel Pivot Tables & Pivot Table Charts

GO! with Microsoft Excel 2016 Comprehensive

WAAT-PivotTables Accounting Seminar

Pivot Tables. This is a handout for you to keep. Please feel free to use it for taking notes.

Rows area Values area

USING MICROSOFT EXCEL 2016 Guided Project 4-3

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

Instructions for the Monthly Trial and Final Payroll Verification

Microsoft Office Excel 2013

Advanced Excel Charts : Tables : Pivots

Starting Excel application

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

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

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

How to insert table in Excel?

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

Become strong in Excel (2.0) - 5 Tips To Rock A Spreadsheet!

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

Microsoft Excel. for Finance Majors. Microsoft Excel for Finance Majors

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

Candy is Dandy Project (Project #12)

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

Lesson 1: Exploring Excel Return to the Excel 2007 web page

Table of Contents: Microsoft Power Tools for Data Analysis #15 Comprehensive Introduction to Power Pivot & DAX. Notes from Video:

MS Office 2016 Excel Pivot Tables - notes

Status Bar: Right click on the Status Bar to add or remove features.

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename.

Quick Guide for Excel 2015 Data Management November 2015 Training:

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

Create a PivotTable. If you prefer to design the PivotTable yourself, you can create a manual PivotTable.

Intermediate Microsoft Excel 2010 Tables and Printing

2017 Shelby Systems, Inc. Other brand and product names are trademarks or registered trademarks of the respective holders.

Mathematical Operators for Excel

Appendix A.57-A.59 Earned Value Management. Visual Reports: Earned Value Chart

Creating an Excel Pivot Table Manually

Pivot Tables in Excel Contents. Updated 5/19/2016

More Skills 12 Create Web Queries and Clear Hyperlinks

Microsoft Excel 2010 Part 2: Intermediate Excel

Excel 2007 Pivot Table Sort Column Headings

Lesson 1: Exploring Excel Return to the FastCourse Excel 2007 Level 1 book page

2013 ADVANCED MANUAL

Links to Activities ACTIVITY 1.1. Links to Activities Links to Activities

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

Microsoft Excel 2010 Training. Excel 2010 Basics

Introduction to Microsoft Excel

This book is about using Microsoft Excel to

Microsoft Excel PivotTables & PivotCharts

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

Les s on Objectives. Student Files Us ed. Student Files Crea ted

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

Table of Contents. 1. Creating a Microsoft Excel Workbook...1 EVALUATION COPY

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

Creating and Using an Excel Table

Microsoft Excel Pivot Tables & Pivot Table Charts

Contents. Group 3 Excel Handouts 2010

Inserting or deleting a worksheet

ADVANCED INQUIRIES IN ALBEDO: PART 2 EXCEL DATA PROCESSING INSTRUCTIONS

Excel Tables & PivotTables

Lab 01 Developing a Power Pivot Data Model in Excel 2013

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

Reference Services Division Presents. Excel Introductory Course

STUDENT LEARNING OUTCOMES

Excel Advanced

Microsoft Excel 2010

Working with Excel CHAPTER 1

Advance Excel Performing calculations on data 1. Naming groups of data 2. Creating formulas to calculate values

Excel. More Skills 11 Insert and Edit Comments. To complete this workbook, you will need the following file: You will save your workbook as: CHAPTER 2

Microsoft Excel Level 2

Microsoft Office Excel 2007: Basic Course 01 - Getting Started

Create an external reference (link) to a cell range in another workbook

CHAPTER TWO: SPREADS HEETS WITH EXCEL 1

EXCEL ADVANCED Linda Muchow

ADVANCED EXCEL Course Modules for Advance Excel Training Online (MS Excel 2013 Course):

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited

Highline Excel 2016 Class 22: How To Build Data Model & DAX Formulas in Power Pivot

Working with Data in Microsoft Excel 2010

Saving a Workbook That Contains Macros

Introduction to Microsoft Excel 2010 Quick Reference Sheet

Microsoft Excel 2016 LEVEL 3

Row 1 is called the header row which contains all the field names. Records start in row 2.

Excel 2007 New Features Table of Contents

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

Advanced Excel Reporting

New Perspectives on PowerPoint Module 2: Adding Media and Special Effects

SPREADSHEET (Excel 2007)

55049: PowerPivot, Power View and SharePoint 2013 Business Intelligence Center for Analysts

Transcription:

Create a Relationship to build a Pivot Table In Excel 2013 and 2016/365 you can now create a relationship between tables of data. This is a feature that can be used to pull data from the different tables to build a PivotTable. The first step in this process is to format the data/table with the Format as Table feature. This can be found on the Home tab, as part of the Styles group. Once you have formatted the table you need to give it a name. Naming the tables will make it easier to identify and work with your data in the Pivot Table. Third, you will need to setup a relationship between each of the three tables. In the following scenario, using hotel data (you as the employee), have downloaded new data into Excel from the hotel s SQL database. You have downloaded three tables that you would like to use in a pivot table. These three tables are; Customers, Reservations and Rooms tables. As mentioned above, to be able to build a pivot table from all three tables you will need to prepare the data first. The first step is to format each table as a table using the Format as Table feature. Second name each table with a unique name. Third, setup a relationship with each table using the Relationship feature on the Data ribbon. After the above three steps are done, you will need to use of Excel s Business Intelligent the PowerPivot add-in. If it is not currently one of your tabs in Excel, you will need to active this add-in. (Click File, Options, Add-ins category. At the bottom of the dialog box click the down arrow for Manage and select COM Add-ins and click the Go button. In the Add-ins available list check the box for Microsoft Power Pivot for Excel. Then click OK.) Using the Power Pivot ribbon you add each table to your Data Model. After all are added, click Manage, Click Pivot Table on the Home ribbon. Building a pivot table using multiple tables 1. Click in the Customers table 2. On the Home ribbon, click the Format as Table button and select Blue, Table Style Medium 6.

The style is in the Medium section first row. 3. In the Format As Table dialog box, confirm that My table has headers is checked. 4. Click the OK button. 5. On the Design ribbon click in the Table Name box, type: Customers and press [Enter] You have created your first formatted table and named the table. 1. Repeat steps 1 5 for the other two tables. 2. Name the tables the same as the sheet names; Reservations and Rooms. In the next few steps you will create the relationship between the three tables. If you look at each table you will notice that the Customers table has a CustID column and the Reservations table has a CustID column. This unique identifier will be used to create the first relationship. The second will be between the Reservations table which has a RoomID column and the Rooms table which has a RoomID column. 1. With the Customers worksheet selected, click the Data tab, in the Data Tools group click Relationships button. 2. In the Manage Relationships dialog, click the New button. 3. Click the Table down arrow and select Worksheet Table: Customers from the list. 4. Click the Column (Foreign) down arrow and select CustID from the list. 5. Click the Related Table down arrow and select Worksheet Table: Reservations from the list. 6. Click the Related Column (Primary) down arrow and select CustID from the list. 2

7. Click the OK button to complete the first relationship. Next you will create the second relationship. 1. Click the New button in the Manage Relationships dialog. 2. Click the Table down arrow and select Data Model Table: Reservations from the list. 3. Click the Column (Foreign) down arrow and select RoomID from the list. 4. Click the Related Table down arrow and select Worksheet Table: Rooms from the list. 5. Click the Related Column (Primary) down arrow and select RoomID from the list. 6. Click the OK button to complete the second relationship. 7. Click the Close button to exit the Manage Relationships dialog. Now you are ready to view your Data Model in the Power Pivot Data Model Manager. On the Home ribbon of Power Pivot Manage feature you can create a Pivot Table. 1. Click the Power Pivot tab and click the Manage button in the Data Model group. 3

2. Click each of the sheet tabs at the bottom of the Manage window to view the data. 3. On the Home tab of the Power Pivot Manage ribbon, click the top half of the PivotTable button. 4. When the Create PivotTable dialog appears, click the OK button to place on a new worksheet. A new sheet is added to your workbook and the PivotTable structure appears. However; this PivotTable is a little different from ones you may have created before. In the PivotTable Fields pane you notice there are three items listed; Customers, Reservations and Rooms. But these are not fields these are the header for a field list. 1. Click the arrow head next to Customers to expand and drag CustName down to Rows box. 2. Click the arrow head next to Reservations to expand and drag ResValue down to Values box. 3. Click the arrow head next to Rooms to expand and drag RoomType down to Columns box. 4

You have created a PivotTable from 3 different sheets of data, using a relationship to connect all three together which creates a Data Model. What is DAX DAX stands for Data Analyze Expression and is used in Excel to write formulas using words rather than cell addresses. Primarily it is used when working in PowerPivot but can be used with a formatted table. Data Analysis Expressions (DAX) sounds a little intimidating at first, but don t let the name fool you. DAX basics are really quite easy to understand. First things first - DAX is NOT a programming language. DAX is a formula language. You can use DAX to define custom calculations for Calculated Columns and for Measures (also known as calculated fields). DAX includes some of the functions used in Excel formulas, and additional functions designed to work with relational data and perform dynamic aggregation. The following is a simple example. 1. Click the Employee List worksheet tab. 2. The current table, Format as Table and name table Payroll. 3. Click in cell L4 and type the following: =SUM(P 4. Double click Payroll in the drop down list. 5. Type an open square bracket: [ 6. Double click the GrossPay field in the drop down list. 7. Add a close square bracket ] and close parenthesis ). 8. Press [Enter] to complete your DAX formula. 5