MIS - Lab02 - Charts-Pivot Tables
MIS - Lab02 - Charts-Pivot Tables
MIS - Lab02 - Charts-Pivot Tables
Charts
Turning data into charts can help visualize the information at hand. To convey the appropriate message
from your data, you need to select an appropriate type of chart for your data.
Let us start out with creating a simple chart using the chart wizard. Open the file excellab2.xslx. In the
total expenses sheet, you will see a table showing the total expenses accumulated by a company in the
12 months of a particular year. Select the entire table.
You may need to drag the corner of the chart to make it larger so that all the months are clearly visible
on the y‐axis. The chart needs some tweaking. First, we need to decide what extra information we want
the chart to show. We want this chart to have a meaningful title and show a title for the x‐axis. We do
Looking at Excel’s built‐in layouts, you will notice that none of them quite satisfy our chart
requirements. Here we have two options. One option is to select one of the layouts and modify it to fit
our needs. For instance, we could pick Layout 6 and simply delete the data labels. The other option
would be to go to the Layout tab in the Chart Tools menu. This tab lets you fine tune the layout of the
chart.
Take a look at the Labels group in the Layout tab. Since we already have a chart title, we do not need to
worry about it. Let us add the x‐axis title. Select Axis Titles, then hover over Primary Horizontal Axis Title,
and select Title Below Axis.
Exercise 1
Remove the legend through the Labels group in the Layout tab. If needed, adjust the chart size so that
all the data are clearly visible.
Now we can play around with the chart colors. Again, Excel allows you to either select one of its predefined
themes or to change the background and colors, one at a time. Select Style 25 from the
Chart Styles group in the Design tab.
Let’s do a little more formatting. Select the chart area (the box that encompasses the chart title and plot
area). Go to the Format tab and under Shape styles, select Subtle Effect ‐ Purple, Accent 4.
Now, select the plot area (the area that includes the chart ONLY) and select Colored Outline ‐ Dark 1.
Pivot tables
Let us first take a look at what the different field areas are used for. Their usage will become clear
The pivot table menu to the right allows you to select the fields you want to add to the table. Select all
of the fields by clicking their respective checkboxes.
Now assume that we only want the information for Travel and Social expenses. Click on the drop‐down
field next to Expense type, and then check the Select Multiple Items checkbox. After that, deselect the
Expense types we do not need and click OK.
You can also filter column and row labels in the same way. Excel pivot tables allow for different calculations
of the data value. Currently, the Expenses are being summed up. Let us modify this so that the table shows
the average of all expenses.
In the pivot table field list (to the right of the screen), click on Sum of Expenses and select Value Field
settings from the menu.
Exercise 3
Modify the pivot table so that it shows the number of times expenses incurred for each month, per
department and per employee, for all expense types.
Exercise 4
Go to the exercise4 sheet in the excellab2.xlsx workbook. The data in the table shows the population
in Canada by age and sex group for 2009.
a) Calculate the totals for each column and row (hint: try dragging the formula).
Exercise 5
Go to the exercise5 sheet in excellab2.xlsx.
a) Format the dates so that they are in the dd/mm/yyyy format.
b) Format the expense amounts so that they show the $ sign (without decimal places).
c) Create a pivot table that shows the total amounts spent on groceries and clothes, by date and
store.