Create a Relationship to build a Pivot Table

Similar documents
Create a Relationship to build a Pivot Table

Microsoft Excel 2013/2016 Pivot Tables

Creating Automated Dashboard Excel 2013 Contents

Sort, Filter, Pivot Table

Pivot Tables and Pivot Charts Activities

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

Pivot Tables, Lookup Tables and Scenarios

Contents. Group 2 Excel Handouts 2010

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

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

Rows area Values area

Excel Tables and Pivot Tables

Microsoft Excel Pivot Tables & Pivot Table Charts

Instructions for the Monthly Trial and Final Payroll Verification

PivotTables & Charts for Health

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

Microsoft Office Excel 2013

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

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

How to insert table in Excel?

WAAT-PivotTables Accounting Seminar

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.

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

MS Office 2016 Excel Pivot Tables - notes

GO! with Microsoft Excel 2016 Comprehensive

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

Mathematical Operators for Excel

Creating an Excel Pivot Table Manually

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

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

Excel 2007 Pivot Table Sort Column Headings

USING MICROSOFT EXCEL 2016 Guided Project 4-3

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

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

Advanced Excel Charts : Tables : Pivots

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

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

ADVANCED INQUIRIES IN ALBEDO: PART 2 EXCEL DATA PROCESSING INSTRUCTIONS

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

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.

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

CHAPTER TWO: SPREADS HEETS WITH EXCEL 1

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

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

Starting Excel application

Candy is Dandy Project (Project #12)

Advanced Excel Reporting

Quick Guide for Excel 2015 Data Management November 2015 Training:

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

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

Microsoft Excel 2010 Part 2: Intermediate Excel

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

Intermediate Microsoft Excel 2010 Tables and Printing

Microsoft Office Illustrated. Using Tables

Unleash the Power of Excel

Microsoft Excel PivotTables & PivotCharts

Microsoft Excel Pivot Tables & Pivot Table Charts

Microsoft Excel 2010 Training. Excel 2010 Basics

This book is about using Microsoft Excel to

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

Creating a Crosstab Query in Design View

Creating a Pivot Table

Lab 01 Developing a Power Pivot Data Model in Excel 2013

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

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

Highline Excel 2016 Class 23: Introduction to Power BI Desktop to Create Data Model & Visualization

How to Set up a Budget Advanced Excel Part B

Excel Tables & PivotTables

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

2013 ADVANCED MANUAL

plus ltd Reports- PIVOT Essentials # Quick Instructions- (ie Click On [CO]) Notes / screenshots Runs your PM data into Excel

Introduction. Inserting and Modifying Tables. Word 2010 Working with Tables. To Insert a Blank Table: Page 1

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

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

Englische Access 2016-Trainingsskripte für IT Seminare und EDV Schulungen als Word-Dokument zum Ausdrucken und fürs Intranet

Working With Tables In Excel 2007

IFS Data Migration Excel Add-In

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

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

Microsoft Excel Level 2

PIVOT TABLES IN MICROSOFT EXCEL 2016

2. In Video #6, we used Power Query to append multiple Text Files into a single Proper Data Set:

Creating and Using an Excel Table

Excel 2013 PivotTables and PivotCharts

Contents. Group 3 Excel Handouts 2010

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited

STUDENT LEARNING OUTCOMES

More Skills 12 Create Web Queries and Clear Hyperlinks

Working with Excel CHAPTER 1

Excel Advanced

EXCEL ADVANCED Linda Muchow

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

2) Excel Basics 5: Power of PivotTables to Create Reports with Various Calculations & Layouts. Page 1 of 21

This lesson is part 5 of 5 in a series. You can go to Invoice, Part 1: Free Shipping if you'd like to start from the beginning.

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

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

Microsoft Excel 2010

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. 2

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. 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 Worksheet 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 build your PivotTable with three different sheets. 1. Click the Insert tab and click the PivotTable button in the Table group. 3

2. Click OK button. 3. In the PivotTable Field pane, click the More Tables link. 4. When the Create a New PivotTable dialog appears, click the Yes button. 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

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. 6