Excel_Power_Pivot_Post_Course_Reference
Excel_Power_Pivot_Post_Course_Reference
Let’s break down the PowerPivot window and how to navigate it in Excel.
Enabling PowerPivot:
Go to Data > Data tools > Click Data Model > Manage Data Model.
The PowerPivot tab will now appear in the Excel ribbon1.
Opening the PowerPivot Window:
Click on the PowerPivot tab in the ribbon.
Select Manage from the Data Model section. This opens the PowerPivot window.
Navigating the PowerPivot Window
Once you’re in the PowerPivot window, you’ll see several key areas:
Data View:
This is the default view where you can see your tables of data on different tabs, similar to worksheets in Excel.
You can add, edit, and delete data here.
Diagram View:
Click the Diagram View icon at the bottom right to see a graphical representation of the relationships between your tables.
This view helps you understand and manage the connections between different data sets.
Field List:
On the right side, you’ll find the Field List, which shows all the tables and fields available in your data model.
You can drag and drop fields to create calculations, measures, and KPIs (Key Performance Indicators).
Exploring the PowerPivot Tab in Excel
The PowerPivot tab in Excel provides several options:
Manage:
Opens the PowerPivot window where you can manage your data model.
Data Model:
Allows you to create and manage relationships between tables.
Measures:
Create calculated fields using DAX (Data Analysis Expressions).
KPIs:
Define and manage Key Performance Indicators to track performance metrics.
Linked Tables:
Create tables in Excel that are linked to your PowerPivot data model.
PowerPivot is a powerful tool for data analysis and modeling, making it easier
to work with large data sets and perform complex calculations within Excel.
Import Data: You can import data from Excel files, databases, and other sources into PowerPivot.
Create Tables: Once imported, data is organized into tables. You can rename tables and columns for better clarity.
Add Calculated Columns: You can create new columns using formulas to perform calculations on existing data.
Filtering and Sorting Data:
Filtering and sorting help you manage and analyze your data more effectively:
Sorting: You can sort data in ascending or descending order based on any column. This helps in organizing data for
better readability.
Filtering: Filters allow you to display only the data that meets certain criteria. You can use basic filters, advanced filters,
or the FILTER function to refine your data.
Diagram View: In PowerPivot, you can use the Diagram View to visually create relationships between tables by dragging
and dropping fields.
Manage Relationships: You can also manage relationships manually by specifying which columns in different tables
should be linked.
Creating and Working with Calculations
PowerPivot uses Data Analysis Expressions (DAX) for creating calculations:
Calculated Columns: These are new columns added to tables using DAX formulas. They perform row-by-row calculations.
Measures: Measures are calculations used in data analysis, such as sums, averages, or more complex aggregations.
They are dynamic and change based on the context of the data in PivotTables.
Unleash the Power of Your Data: A Look at Excel Power Pivot
Import Data: You can use Power Query to import data from a wide range of sources, including databases, Excel files,
text files, web pages, and more.
Transform Data: Once the data is imported, Power Query provides a range of tools to clean and transform the data.
This includes removing columns, changing data types, filtering rows, and more.
Combine Data: Power Query can merge and append data from multiple sources, giving you a unified view of the
information.
Automate Processes: After setting up a query, you can easily refresh it to pull in new or updated data with just a few clicks.
No Coding Required: The Power Query Editor records all your transformations step by step and converts them into
M code for you, similar to how the Macro recorder works with VBA. You don’t need to write any code unless you want to.
Solve date problems in Excel with Power Query
The Magic of Power Query
Clean: Cleaning data involves removing errors, inconsistencies, and unnecessary information from your dataset.
This could include actions like removing duplicates, filling in missing values, correcting errors, or standardizing formats.
Merge: Merging is the process of combining two datasets into one by connecting rows based on a common key or
column. It’s similar to a SQL join. You can perform different types of joins such as inner, outer, left, and right joins
depending on the requirement.
Append: Appending is when you take two or more datasets with the same structure and stack them on top of each
other to create a single, continuous dataset. This is useful when you have data split across multiple files or tables but
need to analyze it as one.
Group: Grouping data in Power Query allows you to aggregate data based on a certain category. For example, you
could sum up sales figures by region or count the number of transactions per product category. It’s a way to
summarize data for easier analysis.
Clean data in Power Query
Excel Power Pivot
Overview of Data Analysis Expressions (DAX) Language
DAX is a formula language used in PowerPivot, Power BI, and other Microsoft data tools. It allows you to create
custom calculations and aggregations in your data models. DAX is similar to Excel formulas but is designed to work
with relational data and perform more complex calculations.
Recalculating Formulas
Formulas in PowerPivot are recalculated automatically when the data changes. This ensures that your calculations
are always up to date. However, you can also manually trigger recalculations if needed.
DAX Examples
1. Calculated Columns
A calculated column is added to an existing table in your data model.
Here’s an example:
This formula concatenates the first and last names into a single column.
2. Measures
Measures are calculations used in data analysis, often in PivotTables.
They are dynamic and change based on the context of the data.
Total Sales:
TotalSales: = SUM(Sales[Amount])
3. Time Intelligence
DAX includes functions to work with dates and times, allowing
for complex time-based calculations.
Year-to-Date Sales:
4. Conditional Values
You can create values based on conditions, similar to
IF statements in Excel.
Sales Category:
5. Ranking
DAX can also be used to rank data.