Prac 7
Prac 7
Excel
What is a Pivot Table?
A Pivot Table in Excel is a powerful tool that allows you to summarize, analyze,
explore, and present large amounts of data. Pivot Tables help you extract
significant insights from your data by allowing you to group, filter, sort, and
perform calculations such as sums, averages, counts, and percentages on your
dataset, all without altering the original data.
Significance of Pivot Tables in Excel:
Summarizing Data: Pivot Tables make it easy to summarize large
datasets. For instance, you can quickly determine totals, averages, and
other summary statistics for different categories of data.
Flexible Data Exploration: You can drag and drop fields to different parts
of the table (rows, columns, values) to explore data from different
angles.
Data Analysis: Pivot Tables provide insights by allowing you to filter and
drill down into specific data points. For example, you can analyze sales by
region, product, or time period.
Interactive Reporting: You can create dynamic reports that are easily
adjustable with filters and slicers, helping users to explore data
interactively.
Efficient Data Organization: Pivot Tables automatically organize and
group data, making it easier to understand trends and patterns in the
dataset.
Steps to Perform Data Modelling and Analytics with Pivot Table in Excel:
1. Load Your Dataset:
o Open your Excel file and ensure your dataset is properly formatted
with headers (e.g., User ID, Device Model, Operating System, etc.).
2. Select Your Data:
o Highlight the entire dataset, including the headers. Ensure there
are no blank rows or columns.
3. Insert a Pivot Table:
o Go to the Insert tab in Excel.
o Click on Pivot Table.
o In the pop-up window, Excel will automatically detect your data
range. Choose where you want to place the Pivot Table (either in a
new or existing worksheet).
o Click OK.
4. Pivot Table Fields:
o On the right side of Excel, you'll see the Pivot Table Fields panel.
You can drag and drop the fields into four areas:
Rows: This is where you categorize data (e.g., Device Model,
Gender, or Operating System).
Columns: Similar to rows, but it creates headers across the
top (e.g., User Behavior Class).
Values: This is where you place fields you want to calculate
(e.g., App Usage Time, Battery Drain). By default, it will sum
the values, but you can change this to count, average, etc.
Filters: This allows you to filter data based on certain criteria
(e.g., Age, Gender, Operating System).
5. Analyze Data Using the Pivot Table:
o After dragging fields into the appropriate areas, Excel will
automatically generate the Pivot Table. You can now:
View summarized data, like total App Usage Time per
Operating System.
Perform calculations such as averages or counts for
different categories.
Filter the data dynamically to focus on specific information
(e.g., Android users only).
6. Perform Data Modelling and Analytics:
o Examples of how to model and analyze your data:
Sum of App Usage Time by Device Model:
Drag Device Model to the Rows section.
Drag App Usage Time to the Values section and
ensure it is set to "Sum."
Average Battery Drain by Operating System:
Drag Operating System to the Rows section.
Drag Battery Drain to the Values section and set it to
"Average."
Data Usage per Gender:
Drag Gender to the Rows section.
Drag Data Usage to the Values section and set it to
"Sum" or "Average."
7. Create Charts from the Pivot Table:
o Select the Pivot Table.
o Go to the Insert tab and choose a chart type (e.g., bar, pie, line) to
visualize the data summarized in your Pivot Table.
8. Filter Data for More Insights:
o Use the Filters section of the Pivot Table to drill down into specific
insights. For instance, you can filter data to only show male users
or iOS users.