Power Query – Power Pivot Overview: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Module 5: Power Pivot Overview = | |||
== Objective == | |||
In this module, you’ll get an introduction to Power Pivot and learn how to build a basic data model from Power Query output. | |||
== Files Used == | |||
* [[Media:PowerPivot_SalesData.xlsx|Download PowerPivot_SalesData.xlsx]] | |||
== What is Power Pivot? == | |||
Power Pivot is an Excel add-in that allows you to build relationships between tables and perform advanced data analysis using the Data Model. | |||
It works seamlessly with Power Query by allowing you to load cleaned and transformed data directly into the Data Model. | |||
== Enabling Power Pivot == | |||
'''Steps:''' | |||
# In Excel, go to the '''File''' tab → '''Options''' | |||
# Select '''Add-ins''' | |||
# At the bottom, next to '''Manage''', choose '''COM Add-ins''' and click '''Go''' | |||
# Check '''Microsoft Power Pivot for Excel''' → Click '''OK''' | |||
# You will now see a '''Power Pivot''' tab in the Excel ribbon | |||
== Loading Data to Power Pivot == | |||
'''Steps:''' | |||
# Import the file '''PowerPivot_SalesData.xlsx''' via Power Query | |||
# In the Power Query Editor, click '''Close & Load To...''' | |||
# In the import dialog, select: | |||
#* '''Only Create Connection''' | |||
#* Check '''Add this data to the Data Model''' | |||
# Click '''OK''' | |||
== Opening the Power Pivot Window == | |||
'''Steps:''' | |||
# Go to the '''Power Pivot''' tab in Excel | |||
# Click '''Manage''' | |||
# This opens a separate Power Pivot window showing the data model | |||
== Creating Relationships == | |||
'''Steps:''' | |||
# If you have multiple tables in the model, go to the '''Diagram View''' | |||
# Drag fields from one table to another to create relationships (e.g. Customer ID → Customer ID) | |||
# You can also go to the '''Design''' tab → '''Create Relationship''' | |||
== Adding Measures (DAX) == | |||
You can create calculated fields (measures) using DAX (Data Analysis Expressions). | |||
'''Steps:''' | |||
# In the Power Pivot window, click into the bottom row of the table | |||
# Type a formula, e.g.: | |||
<syntaxhighlight lang="dax"> | |||
Total Revenue := SUM([Revenue]) | |||
</syntaxhighlight> | |||
# Press Enter — the measure will appear in the model and can be used in PivotTables | |||
== Using Power Pivot in PivotTables == | |||
'''Steps:''' | |||
# Go to Excel → Insert → PivotTable | |||
# In the dialog, select '''Use this workbook’s Data Model''' | |||
# Choose fields from your Power Pivot tables to build a PivotTable with relationships | |||
---- | |||
→ Continue to [[Power Query – Summary and Exercises|Module 6: Summary and Final Exercises]] | |||
Return to [[Power_Query_–_Basic|Main Page]] | Return to [[Power_Query_–_Basic|Main Page]] | ||
Revision as of 09:16, 19 June 2025
Module 5: Power Pivot Overview
Objective
In this module, you’ll get an introduction to Power Pivot and learn how to build a basic data model from Power Query output.
Files Used
What is Power Pivot?
Power Pivot is an Excel add-in that allows you to build relationships between tables and perform advanced data analysis using the Data Model.
It works seamlessly with Power Query by allowing you to load cleaned and transformed data directly into the Data Model.
Enabling Power Pivot
Steps:
- In Excel, go to the File tab → Options
- Select Add-ins
- At the bottom, next to Manage, choose COM Add-ins and click Go
- Check Microsoft Power Pivot for Excel → Click OK
- You will now see a Power Pivot tab in the Excel ribbon
Loading Data to Power Pivot
Steps:
- Import the file PowerPivot_SalesData.xlsx via Power Query
- In the Power Query Editor, click Close & Load To...
- In the import dialog, select:
- Only Create Connection
- Check Add this data to the Data Model
- Click OK
Opening the Power Pivot Window
Steps:
- Go to the Power Pivot tab in Excel
- Click Manage
- This opens a separate Power Pivot window showing the data model
Creating Relationships
Steps:
- If you have multiple tables in the model, go to the Diagram View
- Drag fields from one table to another to create relationships (e.g. Customer ID → Customer ID)
- You can also go to the Design tab → Create Relationship
Adding Measures (DAX)
You can create calculated fields (measures) using DAX (Data Analysis Expressions).
Steps:
- In the Power Pivot window, click into the bottom row of the table
- Type a formula, e.g.:
Total Revenue := SUM([Revenue])
- Press Enter — the measure will appear in the model and can be used in PivotTables
Using Power Pivot in PivotTables
Steps:
- Go to Excel → Insert → PivotTable
- In the dialog, select Use this workbook’s Data Model
- Choose fields from your Power Pivot tables to build a PivotTable with relationships
→ Continue to Module 6: Summary and Final Exercises
Return to Main Page