Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Excel Tutorial
  • Excel Formulas
  • Excel Shortcut Keys
  • Data Analysis in Excel
  • Formatting in Excel
  • Excel Workbooks
  • Statistical Functions
  • Data Visualization in Excel
  • Pivot Tables in Excel
  • MS Excel Quiz
  • Excel Interview Questions
  • Advance Excel
Open In App
Next Article:
How to Create a Power PivotTable in Excel?
Next article icon

How to Create a Power PivotTable in Excel?

Last Updated : 03 Jan, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

When we have to compare the data (such as name/product/items, etc.) between any of the columns in excel then we can easily do with the help of Pivot table and pivot charts. But it fails when it comes to comparing those data which are in two different datasets, at that time Power Pivot comes into role. So, Basically, Power Pivot is useful for comparisons of those data which are in two or more different datasets. Power pivot is useful to perform strong data analysis and create data models also. The main use of this is to mash up a large volume of data from different insights and perform different types of analysis very quickly.

Example: For more clarification, let's understand with one example,

Step 1: First, take any data sets in which you want to compare those data which are in different datasets. Let's say here, we are taking three different datasets Orders, products, and returns. and our aim is to find the total sum of sales in each region.

Dataset 1: Here we are taking the first dataset of name order.

first dataset of name order.
 

Dataset 2: Here we are taking the second dataset of name Product.

second dataset of name product.
 

Dataset 3: Here we are taking the third dataset of name Return.

third dataset of name Return.
 

Convert the whole data into table form (First, select the whole data and press ctrl + T). then it looks like the images mentioned above.

Step 2: Our task is to find the total sum of sales in each region, and we can notice that sales and region columns are not in the same datasets, so we need to apply some relationships in power pivot, by which we can include the common things between each dataset, such as if you notice in all these three tables then [Order_id] is common between Order dataset and Return dataset. Similarly, [Product_id] is common between the Order dataset and the Product dataset. So, in this way we connect these three datasets together, which means now we can do visualization and compare anything between these three datasets.

Step 3: For this now click on Power Pivot on the top of the ribbon. Now in the Tables group. Select the Add to Data Model option. Then a new page of Power Pivot will be open. 

click on Power Pivot and then select the Add to data model option.
 

Here you can see the Power pivot of the Order Table.

Power pivot of Order Table.
 

Follow the same steps and now you can see the Power Pivot of the Product Table.

Power pivot of Product Table.
 

Follow the same steps and now you can see the Power Pivot of Return Dataset.

Power pivot of Return Table.
 

Step 4: Go to the power pivot table slide and select the Design tab on the top of the ribbon. Then from the relationship group select Create Relationship.

Create the first relationship, Choose [Order_id] from the Order dataset and [Order_id] from the Return dataset.

Choose [Order_id] from Order dataset and [Order_id] from Return dataset.
 

Similarly, create a second relationship and choose [Product_id] from the Order dataset and [Product_id] from the Product dataset.

choose [Product_id] from Order dataset and [Product_id] from Product dataset.
 

Then at the end we can check or view our active relationships by going to the option "Manage relationship", your all-active relationships are shown there.

In home tab click on manage relations. and relations are shownhip
 

Step 5: In the power pivot window, go to the 'Home' tab on the top of the ribbon and then Click on Pivot Table.

In home tab click on Pivot Table.
 

Then it will show you a Create PivotTable dialog box, whether you want it in a new sheet or not. Here we are selecting a new worksheet, and then Click Ok.

PivotTable dialog box appear. Here select New Worksheet.
 

Then it will be redirecting you to a new sheet automatically.

New Power Pivot Sheet appear
 

Step 6: Now select the "Region" in "Rows" and "Sales" in "Value".

It shows the total after select the "Region" in Rows and "Sales" in "Value".
 

So, with the help of Power Pivot, we did our task which is, to show the Sum of sales region-wise.


Next Article
How to Create a Power PivotTable in Excel?

A

ankitkumarh15
Improve
Article Tags :
  • Excel
  • Technical Scripter 2022
  • Excel-Power-Pivot
  • ExcelGuide

Similar Reads

    How to Create Pivot Table in Excel using Java?
    A pivot table is needed to quickly analyze data of a table with very little effort (and no formulas) and sometimes not everyone has time to look at the data in the table and see what’s going on and use it to build good-looking reports for large data sets in an Excel worksheet. Let's discuss a step-b
    5 min read
    How to Create Pivot Tables in R?
    In this article, we will discuss how to create the pivot table in the R Programming Language. The Pivot table is one of Microsoft Excel's most powerful features that let us extract the significance from a large and detailed data set. A Pivot Table often shows some statistical value about the dataset
    2 min read
    How to Create Relational Tables in Excel?
    Excel directly doesn't provide us ready to use a database, but we can create one using relationships between various tables. This type of relationship helps us identify the interconnections between the table and helps us whenever a large number of datasets are connected in multiple worksheets. We ca
    4 min read
    How to Add a Calculated Field to a Pivot Table in Excel
    A Calculated Field in Pivot Table allows you to perform custom calculations within your Excel Pivot Table, giving you more flexibility and deeper insights into your data. Whether you need to add a custom formula, modify existing calculations, or remove a field, this guide walks you through the essen
    6 min read
    How to Create a Contingency Table in Excel
    A contingency table, also known as a crosstab is used to show the relationship between two categorical variables. In Excel, we can make a contingency table using the pivot table function. They are best for summarizing the relationship between categorical variables. A contingency table is just like a
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences