create a pivot chart in excel

are you faced with a mountain of excel data, and need to consolidate it into a usable format so that it can be easily filtered grouped and sorted?

welcome to the world of pivot tables!

pivot tables are part of most spreadsheet or business intelligence software packages. they can be used with any kind of data that is stored in columns, but are extremely useful when the data is so large that it goes beyond what normal spreadsheet filters can handle.

the pivot table, once setup can be used to group, sort, and summarize data using basic mathematical functions. the pivot or summary table can then be altered simply by dragging and dropping fields graphically.

inherently we run across instances like this in our day to day jobs as planners or project control personnel when dealing with actuals from our timesheet or lem system, summarizing data for invoicing or comparing data from our subcontractors to their invoices, etc. so let’s walk through how to do a simple pivot table in excel.

first we need a data source that is set up in columns. i am going to use an example data set that i found on the internet. this data is showing nfl offensive player stats from 1993 – 2013.

pivot chart in excel

 

once we have our data in the proper format, we can then make a pivot table. to do that, highlight the columns, and select the insert tab from the ribbon.

pivot chart in excel

 

once done you will see a screen as shown below.

pivot chart in excel

 

this is showing the data that you identified, and asking if you would like to create a pivot table with the chosen data. click ok. next you will see a new sheet with a pivot table on the sheet and a pivot table field list on the right.

pivot chart in excel

 

this is where the fun begins. now we have to decide how we want to display our data. if you review the data that was supplied, it has columns that are descriptors for the particular row of data.

namely (year, player, age, hometown, home state, tm, and position). then the data has columns of stats or numbers. let’s say we want to see amount of tds by position. we would drag the td field to the values window on the lower right side, and drag the position field to the row labels position.

pivot chart in excel

 

looking at the td field in the values window, it is set to count. what this is doing is just counting the amount of entries that td shows up in the dataset in the given position. what we need to do is change this to sum, as one entry may be a value greater than 1.

so click the drop arrow on the right side of count of td and select “value field setting”

pivot chart in excel

 

this window will pop-up:

pivot chart in excel

 

select sum and press “ok”   we end up with the following result.

pivot chart in excel

 

from here we can chart our data. select options -> pivot chart, and then select column -> column chart, and press “ok”.

pivot chart in excel

 

a chart is displayed showing amount of tds by position.

pivot chart in excel

 

maybe we want to break this down further. one way we could do that is plot this by year. so tds by position by year. grab the year field and drag it down to the axis field window, and drag the positions field to the legend fields window.

pivot chart in excel

 

now we have the full chart, but wait, we can’t really see the other positions as the total numbers of tds are so low compared to qb. let’s filter out the qb so we can see the values for the other positions.

in the field list window scroll down to “pos” or position, select the drop down arrow.

pivot chart in excel

 

uncheck the qb item, and press “ok”

pivot chart in excel

here is the final result.

pivot chart in excel

pretty handy right? well now that you have a basic understanding of it, what if i told you, that you could use this same type of setup to chart resource units, costs, earned value, s-curves, etc right out of p6? i bet you would jump all over that.

learn more about advanced p6 reporting using excel and check out the free lesson video.

primavera p6 eppm ondemand course