- Inquire
- Formula Auditing
- Working with Multiple Sheets
- Financial Analysis
- Data Validation
- Data Visualization
- PivotTables
- Lookup Functions
- Quick Analysis
- Subtotals with Ranges
- Filtering
- Sorting
- Conditional Formatting
- Working with Time Values
- Cleaning Data Contains Date Values
- Cleaning Data with Text Functions
- Tables
- Working with Range Names
- Excel Data Analysis - Overview
- Data Analysis - Process
- Data Analysis - Overview
- Excel Data Analysis - Home
Advanced Data Analysis
- Key Performance Indicators
- Aesthetic Power View Reports
- Exploring Data with Hierarchies
- Exploring Data Power View Tiles
- Exploring Data PowerView Multiples
- Exploring Data Power View Maps
- Exploring Data Power View Charts
- Exploring Data with Power View
- Exploring Data with Powerpivot
- Exploring Data with PivotTables
- Data Model
- Importing Data into Excel
- Optimization with Excel Solver
- What-If Analysis with Goal Seek
- What-If Analysis Scenario Manager
- What-If Analysis with Data Tables
- What-If Analysis
- Data Consolidation
- Advanced Data Analysis - Overview
Excel Data Analysis Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Exploring Data with PivotTables
You can do extensive data analysis using PivotTables and produce desired reports. The integration of Data Model with PivotTable enhances the way the data is collated, connected, summarized and reported. You can import tables from external data sources and create a PivotTable with the imported tables. This faciptates automatic updations of the values in the PivotTable whenever the data in the connected data sources is updated.
Creating a PivotTable to analyze External Data
To create a PivotTable to analyze external data −
Open a new blank workbook in Excel.
Cpck the DATA tab on the Ribbon.
Cpck From Access in the Get External Data group. The Select Data Source dialog box appears.
Select the Access database file.
Cpck the Open button. The Select Table dialog box appears, displaying the tables in the database. Access database is a relational database and the tables will be similar to Excel tables, with the exception that relationships exist among those tables.
Check the box Enable selection of multiple tables.
Select all the tables. Cpck OK.
The Import Data dialog box appears. Select PivotTable Report. This option imports the tables into your Excel workbook and creates a PivotTable for analyzing the imported tables.
As you observe, the checkbox Add this data to the Data Model is selected and disabled, indicating that the tables will be added to the Data Model automatically.
The data will be imported and an empty PivotTable will be created. The imported tables appear in the PivotTable Fields pst.
Exploring Data in Multiple Tables
You can analyze the data from the imported multiple tables with PivotTable and arrive at the specific report you want in just few steps. This is possible because of the pre-existing relationships among the tables in the source database. As you imported all the tables from the database together at the same time, Excel recreates the relationships in its Data Model.
In the PivotTable Fields pst, you will find all the tables that you imported and the fields in each of them. If the fields are not visible for any table,
Cpck on the arrow next to that table in the PivotTable Fields pst.
The fields in that table will be displayed.
Exploring Data using PivotTable
You know how to add fields to PivotTable and drag fields across areas. Even if you are not sure of the final report that you want, you can play with the data and choose the appropriate report.
Suppose you want to have a report displaying the following −
Data for five discippnes - Archery, Diving, Fencing, Figure Skating and Speed Skating.
Regions that scored more than 80 medals in these 5 discippnes.
The count of medals in each of the five discippnes in each of these regions.
Total count of medals for the five discippnes in each of these regions.
You can see how easily you can create this report in few steps.
To start with, create a PivotTable displaying the count of medals in all the regions for the selected five discippnes as follows −
Drag the NOC_CountryRegion field from the Medals table to the COLUMNS area.
Drag Discippne from the Discippnes table to the ROWS area.
Filter Discippne to display only the five discippnes for which you wanted the report. This can be done either in the PivotTable Fields area, or from the Row Labels filter in the PivotTable itself.
Drag Medal from the Medals table to the VALUES area.
Drag Medal from the Medals table to the FILTERS area.
You will get the following PivotTable −
As you observe, Count of Medals is displayed for all the regions and for the five discippnes that you selected. Next, you have to fine-tune this report so that only those regions with total count of medals greater than 80 will be displayed.
Cpck the arrow button to the right of Column Labels.
Cpck Value Filters in the drop-down pst that appears.
Select Greater Than… from the drop-down pst that appears.
Value Filters dialog box appears.
As you observe, Count of Medals and is greater than are displayed in the boxes below Show items for which. Type 80 in the box next to the box containing is greater than and cpck OK.
Now, the PivotTable displays only those regions with total count of medals in the selected five discippnes greater than 80.
Creating a Relationship between Tables with PivotTable Fields
If you do not import the tables at the same time, if the data is from different sources, or if you add new tables to your workbook, you have to create the relationships among the tables by yourself.
Add a new worksheet with a table that contains Sport and SportID fields to your workbook.
Name the table - Sports.
Cpck ALL in the PivotTable Fields pst in the PivotTable worksheet.
You can see that the newly added table- Sports is also visible in the PivotTable Fields pst.
Next, add the field Sport also to the PivotTable as follows −
Drag the field Sport from the table Sports to ROWS area. The Sport values appear as Row labels in the PivotTable.
A message will appear in the PivotTable Fields pst that Relationships between tables may be needed. A CREATE button appears next to the message.
Cpck the CREATE button. The Create Relationship dialog box appears.
Select Medals under Table.
Select Sport under Column.
Select Sports under Related Table. Sport appears under related column.
Cpck OK.
Drag Discippne under Sport in ROWS. This is to define the hierarchy in the PivotTable. The PivotTable displays the Sport and the corresponding group of discippnes for that sport.
Advertisements