Highline Class, BI 348 Basic Business Analytics using Excel Introduction to PowerPivot 1.

Slides:



Advertisements
Similar presentations
MS EXCEL is a spreadsheet application Excel covers: Calculation Graphic tools Pivot tables Macro programming language called VBA EXCEL is a part of MS.
Advertisements

Chris Webb Crossjoin Consulting Ltd
Microsoft Office XP Microsoft Excel
BUSINESS DRIVEN TECHNOLOGY Decision Analysis Tools in Excel
Decision Analysis Tools in Excel
Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Chapter 5 Creating, Sorting, and Querying a Table
Chapter 6: Pivot Tables Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
MyFloridaMarketPlace Analysis 2.0 Functional Overview December 18 - December 19, 2007.
Database Features. Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row.
Microsoft Access vs. Microsoft Powerpivot
USING PIVOT TABLES IN MICROSOFT EXCEL LOCAL GOVERNMENT CORPORATION RESOURCE 2015.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Extended Learning Module D (Office 2007 Version) Decision Analysis with Spreadsheet Software Copyright © 2010 by the McGraw-Hill Companies, Inc. All rights.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Data Analysis Nirvana: Excel 2013 Business Intelligence Features Tom Jones – President, Iridium Technology LLC.
Chapter 3 Maintaining a Database
Developing Effective Reports
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
OST Introduction to Excel Excel 2004 The Project Gallery is a window that links you to every application in Microsoft Office. It allows.
Microsoft Access 2010 Building and Using Queries.
The Advantage Series ©2004 The McGraw-Hill Companies, Inc. All rights reserved Chapter 8 Managing Worksheet Lists Microsoft Office Excel 2003.
Chapter 19 Managing Worksheet Lists. Creating Lists ► Microsoft Office Excel 2003 is inarguably the most powerful electronic spreadsheet available. ►
Working with Reports in Microsoft Excel Session Version 1.0 © 2011 Aptech Limited.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 6 – Designing.
PIVOT TABLES AND CHARTS CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 5 PivotTables and Charts.
Class Agenda Excel  PivotTables Excel & Word Integration Try PivotTable tutorial & work on Assignment #1.
With Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft Excel ® 2007 Comprehensive 1e Chapter.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
David Dye.  Introduction  Introduction to PowerPivot  Working With PowerPivot.
Excel: Pivot Tables Exploring Computer Science Lesson Supplemental.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
Highline Class, BI 348 Basic Business Analytics using Excel Import, Clean, Transform, Data 1.
1 11 Exploring Microsoft Office Access. 2 Methods of Form Creation You can create a form using: Form, Split and Multiple Form Tools Datasheet Tool Form.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T3: Problem Solving Using Excel 2007.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Oracle Business Intelligence Foundation - Commonly Used Features in Repository.
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
Microsoft ® Excel ® 2013 Enhanced Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts.
BISM Introduction Marco Russo
MyFloridaMarketPlace Analysis 2.0 Functional Overview.
OM. Platinum Level Sponsors Gold Level Sponsors Pre Conference Sponsor Venue Sponsor Key Note Sponsor.
Power BI Performance Tips & Tricks
Exploring Excel Chapter 5 List and Data Management: Converting Data to
Exploring Computer Science Lesson Supplemental
MS-Excel Part 1.
Module 11: Introduction to DAX Module 11 Introduction to DAX
Exam Braindumps
Toolkit for DAX Optimization
Power BI Performance …Tips and Techniques.
Advanced Microsoft Excel
Access: Access Basics Participation Project
Data Analysis & Business Intelligence Made Easy with Excel Power Tools
Microsoft Excel Basics: Pivot Tables
Annoyed with a stubborn pivot table? PowerPivot is your answer.
Microsoft Excel PowerPivot ….light & Easy
Presentation transcript:

Highline Class, BI 348 Basic Business Analytics using Excel Introduction to PowerPivot 1

Topics 1.What is PowerPivot? 2.Which versions of Excel contain PowerPivot 3.What is Data Model? 4.Columnar Database 5.Data Modeling 6.Related Tables 7.References for more advanced PowerPivot and Data Modeling 2

Topics 8.What Basic Topics we will cover in PowerPivot 1.Import data (including big data -millions of records) into Data Model using PowerPivot or Power Query. 2.Create Relationships between related tables 3.Use the new DAX formula language to build formulas that we can use in our PivotTable. 4.Two types of formulas in DAX 5.Build PivotTables and Charts based on Data Model 6.Refresh when data source updates 7.Reports and Dashboards will update 3

What is PowerPivot? Overview: Import data (including big data) into Data Model, then with tables in Data Model you can further refine the Data Model by creating relationships between related tables and build "Portable Formulas" with the new DAX formula language that can be used in PivotTables to build reports and perform analytics. It is called PowerPivot because it is a super-charged version of the PivotTable we already know and love. It is super-charged because: 1) we can have big data behind our PivotTable and 2) because we are allowed to make formulas for the PivotTable. Power Pivot is a COM add-in that is available in Excel 2010 or later and adds a new Ribbon Tab. PowerPivot is in essence two things: 1) Data Model (data, relationships, formulas) and 2) the PivotTable report/calculations that are created from the Data Model. 4

Which Versions of Excel Contain PowerPivot? Versions of Excel 2013 contain PowerPivot: Office 2013 Professional Plus Stand Alone Excel Office 365 (E3 or E4 editions) Versions of Excel 2016 contain PowerPivot: Office 2016 Professional Stand Alone Excel Office 365 Professional Plus editions 5

What is the Data Model? 1.Columnar database that stores data efficiently (reduced file size). Behind the scenes (in-memory) Columnar Database that allows you to import large data sets (millions of rows) that would not fit in an Excel sheet. The Data Model stores the imported data, not in an Excel Sheet or Table, but in the “In-memory Columnar Database. 2.Can create Relationships between related tables (like VLOOKUP would do in Excel). 1.There are other types of relationships besides the one-to-many relationship we will use. 3.DAX formula language to create formulas you can use in a PivotTable. DAX = Data Analysis Expressions (Expressions means formulas). There are many more DAX functions in PowerPivot than there are in a PivotTable. New Functions like: SAMEPERIODLASTYEAR to get the parallel number from last year to then make a percentage change formula. The Data Model is designed to perform analytic DAX calculations efficiently and quickly (especially as compared to native Excel formulas). 4.Note: When you use Data Model, Dates cannot be grouped in the PivotTable To get around this you must build a date lookup table called a “Calendar Table” 6

7 Note: In General, Columnar Database has an even smaller file size and faster formula calculation time than a Normalized Database.

Synonyms For Data Model PowerPivot Database Columnar database Data Model Excel Data Model PowerPivot Database stored in an Excel workbook PowerPivot xVelocity engine PowerPivot engine XVelocity analytics engine Excel 2013 PowerPivot engine = Tabular engine of SQL Server Analysis Services 2012 running in process inside Excel VertiPaq =XVelocity = Database in memory = Columnar database. Storage engine 8

Data Modeling Before Power Query & PowerPivot 1.Use “Get External Data” feature, Text To Columns 2.Formulas, VLOOKUP function, Helper Columns, Array Formulas 3.Other Excel features 4.To prepare data set so we can make reports and perform analytics with PivotTables. With Power Query & PowerPivot 1.Transform data and import into Data Model with Power Query 2.Create relationships between related tables 3.Create DAX Calculated Columns for row/column/filter criteria in PivotTable 4.Create DAX Measures (Calculated Fields) to drop in Values area of PivotTable 5.So we can make reports and perform analytics with PivotTables. 9 Data Modeling: Importing and transforming, creating relationships between and creating formulas for related tables to prepare data so that we can make reports and perform analytics.

Related Tables 10 Excel: Transaction Table Excel: Lookup Table

References for more advanced PowerPivot and Data Modeling Great book about build the Data Model: Microsoft Excel 2013: Building Data Models with PowerPivot Microsoft Excel 2013: Building Data Models with PowerPivot building-data-models-with-powerpivot/ building-data-models-with-powerpivot/ Books about DAX: The Definitive Guide to DAX guide-to-dax/ guide-to-dax/ DAX Patterns / / Excelsifun Basics Playlist of videos: Excel 2013 PowerPivot Playlist of Videos vpgDmw0nGCx21PRFbsJpUIH06LKs- vpgDmw0nGCx21PRFbsJpUIH06LKs- Here are some of the PowerPivot Experts: Marco Russo Alberto Ferrari ferrari/ ferrari/ Rafal Lukawiecki Rob Collie Kasper de Jonge here/ here/ Chris Webb

What Basic Topics we will cover in PowerPivot 1.Import data (including big data -millions of records) into Data Model using PowerPivot or Power Query. 2.Create Relationships between related tables 3.Use the new DAX formula language to build formulas that we can use in our PivotTable. 4.Two types of formulas in DAX 5.Build PivotTables and Charts based on Data Model 6.Refresh when data source updates 7.Reports and Dashboards will update 12

1) Import Data Into Data Model Using PowerPivot or Power Query All the tricks we learned last chapter!!! 13

PowerPivot Ribbon 2013 or Click “Manage” to work on Data Model Button to create Calculated Field / Measure looks different in the 2 versions (Calculated Field and Measure are synonyms)

2) Manage Data Model: Design View: Create Relationships Between Related Tables 15 Drag and drop fields to build relationships. Relationships allow us to: 1) drag fields from multiple tables in our PivotTable Field List and 2) Build DAX formulas that can simultaneously work with related tables. Diagram View

2) Create Relationships Between Related Tables In Diagram View, You can drag &drop fields to create one-to-many relationships between Lookup Table (Dimension Table) and Transaction Table (Fact Table) Although there are other types of relationships, we are only creating One to Many Relationships. One to Many Relationship means that the Lookup Table (Dimension Table) has a unique list in the first column and the Transaction Table (Fact Table) can have many repeats in its related column. Relationships allow us to: 1.Drag fields from multiple tables in our PivotTable Field List. 2.Build DAX formulas that can simultaneously work with related tables. With Relationships, Filters/Criteria flow down from the Lookup Table (Dimension Table) to the Transaction Table (Fact Table) and actually filter the Transaction Table (Fact Table) to cause it to have fewer rows “showing”. This is one aspect of the Columnar Database that contributes to efficient formula calculation. 16

3) Use DAX Formula Language to Build Formulas that We Can Use in Our PivotTable There are many more DAX functions than there are functions in a standard PivotTable DAX functions work with the Columnar Database to work on large data sets efficiently Some of the DAX functions we will see: RELATED (like VLOOKUP function in Excel) FORMAT (like TEXT function in Excel) ROUND (same as in Excel) SUM (same as in Excel) SUMX (when you need to add an iteration over a table) CALCULATE (like SUMIFS or COUNTIFS (but can do any calculation, not just sum or count) AND it can alter or override the Filter/Criteria in a PivotTable More… 17

4) Two types of formulas in DAX Calculated Column Formulas you build that will show up in PivotTable Field List and that you want to drag & drop to the Row/Column/Filter area of PivotTable. For example when we want month names in the row area of a PivotTable. Like a Helper Column in Excel. Create as new column in an import table. Measures (Calculated Fields) Formulas you build that will show up in PivotTable Field List and that you want to drag & drop in the Values area of a PivotTable. For example, a calculation for Total Revenue or Percentage Change for the period. Created below the imported table which you want to display the formula (in its PivotTable Field List) in the “Measure Grid”. 18

4) Manage Data Model: Data View: Create Calculated Columns & Measures (Calculated Fields) 19 Data View Calcula tion Area Create Measures (Calculated Fields) here Calculated Columns here

4) more about DAX Calculated Column When you create a Calculated Colum start the formula with an equal sign. When you enter a formula into a Calculated Column, the same formula is in whole column. It always knows how to calculate because of Row Context (what row it is in). Formula convention: When referring to a column in a table, use the full Table Name and Field Name. When using a Measure (Calculated Field) in a formula, use square brackets and the Measure (Calculated Field) Name. Calculated Columns will allow you to apply Number Formatting and it will show up in PivotTable (not a common practice). Calculated Columns can be used in a PivotTable or in Measures (Calculated Fields). 20

4) Calculated Column Row Context Row Context Row Context happens in Calculated Columns. For example, if there is a relationship between two tables, the RELATED function knows to look at the related item in the current row and look it up in the related table. Another example: if we use the table and field name “fSales[Units]” in a Calculated Column formula the the table and field name will know to get the units for the current row because of Row Context. 21

4) more about DAX Measures (Calculated Fields) When you create a Calculated Field (Measures) start the formula with a colon and equal sign := Formula convention: When referring to a column in a table, use the full Table Name and Field Name. When using a Measure (Calculated Field) in a formula, use square brackets and the Measure (Calculated Field) Name. Measures (Calculated Fields) will allow you to apply Number Formatting and it will show up in PivotTable. Measures (Calculated Fields) can be used in a PivotTable or in Measures (Calculated Fields). 22

4) DAX Measures (Calculated Fields) Filter Context Filter Context Filter Context happens to Measures (Calculated Fields) in PivotTables Filter Context happens when you: Drop Measures (Calculated Fields) into Values area of PivotTable or When the Criteria/Filter are changed in the Row/Column/Filter area of PivotTable. Filter Context means that the Measures (Calculated Fields) is calculating an answer by: 1.Looking at the “current Criteria/Filter from the PivotTable” 2.Then looking at formula 3.Then filtering underlying tables 4.Then calculating an answer Criteria/Filter flow from Lookup (Dimension) Tables down to Transaction (Fact) Tables and then actually filter the table to “show” fewer records. Because DAX formulas have to calculate on a filter table, they have to process over fewer records than a complete table. This is called Filter Context and it contributes to efficient DAX formula calculation time for big data sets. 23

4) Measures (Calculated Fields) as “Portable Formulas” Advantages of “Portable Formulas” 1.You can use the formulas in multiple PivotTables and other Measures (Calculated Fields). 2.They will respect the criteria/filters in the row area, column area or filter area of the PivotTable. If you change the criteria/filter, the formula instantly updates. Normal Excel spreadsheet formulas can NOT do this. The criteria from the PivotTable will filter the underlying table and the formula will have to process over fewer rows then the whole table. This helps DAX formulas to process efficiently. 3.When you add Number Formatting to a Measures (Calculated Fields) it will be displayed whenever you drop the formula into a PivotTable. 1.You do not have to keep applying Number Formatting every time you create a new PivotTable. 4.DAX Measures (Calculated Fields) work efficiently with Columnar Database on big data. DAX Measures (Explicit formulas) will calculate more quickly than non-DAX formulas. 24

Implicit vs. Explicit Formulas Implicit Formulas Implicit Formulas: Using a PivotTable Function or Show Values As Calculation from a PivotTable. Stay away from implicit because they do not have the advantages of “Portable Formulas”. Efficient Data Models do not use Implicit Formulas. Explicit Formula Explicit Formula: Build a DAX Measure (Calculated Field ) and then drop it in a PivotTable or use in other Measures (Calculated Fields). Efficient Data Models use Explicit Formulas rather than Implicit Formulas. Advantages: Create formula and Number Formatting one time and can use over and over, including in other DAX formulas. By using DAX functions and formulas rather than PivotTable functions, efficiency is gained because of how DAX works with the Columnar Database (DAX formulas calculate on Filtered tables). 25

5, 6, 7) Build PivotTables And Charts Based On Data Model. Refresh When Data Changes. PivotTables based on the Data Model can create from: Standard Create PivotTable dialog box by sing “Use an external data source” Manage Data Model Home Ribbon Refresh when data source updates: Ctrl + Alt + F5 will update all data sources Reports and Dashboards will update Right-click PivotTable report and click on Refresh 26