Explain Why this Pivot Table is Layed Out this Way

bencar

Banned user
Joined
Jun 8, 2016
Messages
149
Hi guys,

Trying to figure out why this pivot table is layed out the way it is. Here are my 4 questions. Below that is the exercise and its info.

1. Why is 'design' in the column area?
2. Why are 'amusement park' and 'roller coaster' in the row area?
3. Why is 'type' in the filter section?
4. In creating pivot tables in the future where should I put data into which PT data fields??


Heres the exercise. And below is all the info:

Convert this data into a pivot table and find the overall average speed of all rides that satisfy the following criteria:

  • The Type is Steel.

  • The Design is Sit Down.

  • The Amusement Park has the word adventure somewhere in the title.

Roller Coaster
Amusement Park
Type
Design
StatusOpenedSpeed
AirAlton TowersSteelFlyingOperating200246.6
BoomerangPleasure Island Family Theme ParkSteelSit DownOperating199347
CobraPaultons ParkSteelSit DownOperating200631.1
ColossusThorpe ParkSteelSit DownOperating200245
CorkscrewAlton TowersSteelSit DownOperating198040
CorkscrewFlamingo Land Theme Park & ZooSteelSit DownOperating198340
Crazy MouseSouth PierSteelSit DownOperating199829.1
Crazy MouseBrighton PierSteelSit DownOperating200029.1
EnigmaPleasurewood HillsSteelSit DownOperating199534
ExpressM&Ds Scotland's Theme ParkSteelSit DownOperating200628
Fantasy MouseFantasy IslandSteelSit DownOperating200029.1
G ForceDrayton Manor ParkSteelSit DownOperating200543.5
Grand NationalPleasure Beach, BlackpoolWoodSit DownOperating193540
InfusionPleasure Beach, BlackpoolSteelInvertedOperating200749.7
Irn-Bru RevolutionPleasure Beach, BlackpoolSteelSit DownOperating197945
Jubilee OdysseyFantasy IslandSteelInvertedOperating200263
Jungle CoasterLegoland WindsorSteelSit DownOperating200435
KnightmareCamelot Theme ParkSteelSit DownOperating200743.5
KumaliFlamingo Land Theme Park & ZooSteelInvertedOperating200654.9
Magic MouseBrean Leisure ParkSteelSit DownOperating200729.1
MegafobiaOakwood Theme ParkWoodSit DownOperating199648
Millennium Roller CoasterFantasy IslandSteelSit DownOperating199955.9
NemesisAlton TowersSteelInvertedOperating199450
Nemesis InfernoThorpe ParkSteelInvertedOperating200347.8
New Roller CoasterNew MetroLandSteelSit DownOperating198826.8
OblivionAlton TowersSteelSit DownOperating199868
Pepsi Max Big OnePleasure Beach, BlackpoolSteelSit DownOperating199474
RageAdventure IslandSteelSit DownOperating200743.5
RatLoudoun CastleSteelSit DownOperating200528
RattlesnakeChessington World of AdventuresSteelSit DownOperating199828
Rhino CoasterWest Midlands Safari ParkSteelSit DownOperating199228.5
Rita - Queen of SpeedAlton TowersSteelSit DownOperating200561.1
Roller CoasterGreat Yarmouth Pleasure BeachWoodSit DownOperating193245
Roller CoasterPleasure Beach, BlackpoolWoodSit DownOperating193335
Roller CoasterWicksteed ParkSteelSit DownOperating200028
ShockwaveDrayton Manor ParkSteelStand UpOperating199453
Speed: No LimitsOakwood Theme ParkSteelSit DownOperating200659
StealthThorpe ParkSteelSit DownOperating200680
TornadoM&Ds Scotland's Theme ParkSteelSit DownOperating199844.7
TsunamiM&Ds Scotland's Theme ParkSteelInvertedOperating200438
Twist and ShoutLoudoun CastleSteelSit DownOperating200341
TwisterLightwater ValleySteelSit DownOperating200129.1
UltimateLightwater ValleySteelSit DownOperating199150
VampireChessington World of AdventuresSteelSuspendedOperating200245
VelocityFlamingo Land Theme Park & ZooSteelSit DownOperating200554
Wall's Twister RideWest Midlands Safari ParkSteelSit DownOperating199829.1
WhirlwindCamelot Theme ParkSteelSit DownOperating200337.3
Wild MouseFlamingo Land Theme Park & ZooSteelSit DownOperating199728
WipeoutPleasurewood HillsSteelSit DownOperating200747
X:\ No Way OutThorpe ParkSteelSit DownOperating199627.7

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I'm going to skip your enumerated questions, because there isn't a definitive answer for the right way to approach a pivot table. It comes down to more of a style question. Instead, I'll talk about how I think about pivot tables when I create them.

From the problem you are presented with (or the question you are trying to answer), work from the bottom up:

First of all, you know that you have a global limitation. No matter what information is contained, you only care about TYPE = STEEL. This is a global/background filter, a requirement to subset the data. That field goes into the FILTER field. For that matter, you have a limitation of DESIGN = SIT DOWN. That could easily be placed in the FILTER field. Filtering eliminates items that don't meet the filter. Frequently, you will be posed with an explicit question, and when you deliver the answer, it leads to more questions. I generally default to putting grouping elements into rows/columns so you can see them still (and be able to answer the next question that hasn't been asked).

Then understand how you want to aggregate data. The question says you want to know the overall average speed. Speed is the data point that goes in ∑ Values field, follow by a left click and changing "value field settings" to find average. This says that when you find multiple items of data that have some common attributes, what action do you want to do in order to summarize or aggregate that information. When it is a number, you usually want to count the number of instances, or sum the instances together, or (in this case) take the average of the values. These are all mathematical functions that are acting upon all instances of a data point (SPEED) to return a single piece of information on several underlying data points.

From there, you can easily add things to rows/columns as needed. This will group the information. Its performing the action that the phrase "for each amusement parks, what is the overall average speed" is asking for. Fields placed in rows/columns will GROUP the contents of the column together. In short, it looks at the list, and generates a list off of it where each item exists once (thus each amusement park is represented one time) and the aggregation function is applied to all instances that meet it. If there are 6 data points (coasters) in a park, the park name will show up one time on the left, and the 6 data points will be aggregated together in the values field (average is taken on the 6 points).

The row/column feature is a place to play around to tell the story the way you want to. You could layer all elements in the rows (hard to compare), or play with columns and row interplay to show how things intersect and keep the table tighter. This is where the fun comes in!
 
Upvote 0
(Don't look here until after you've followed gmhumphr's suggestion):

IFxPJQx.png
 
Upvote 0
I

First of all, you know that you have a global limitation. No matter what information is contained, you only care about TYPE = STEEL. This is a global/background filter, a requirement to subset the data. That field goes into the FILTER field. For that matter, you have a limitation of DESIGN = SIT DOWN. That could easily be placed in the FILTER field. Filtering eliminates items that don't meet the filter. .

Hi gmhumphr,

Thanks for your help. I can understand why DESIGN = SIT DOWN would also be in the filter along with TYPE = STEEL. But can you explain what you said, "Filtering eliminates items that don't meet the filter"? Thats confusing.
 
Upvote 0
Think of this hypothetical:

You have the dataset above, but there is one more roller coaster on the list. This one is different from the others in that its TYPE = TITANIUM. If you put TYPE in the FILTER and selected only TITANIUM from the list, the pivot table would ignore every other coaster on the list, since it is the one and only coaster that meets the criteria of TITANIUM. As far as the pivot table is concerned after that filter is put in place, you have 1 and only 1 record to display. There is no more data, and nothing to summarize/aggregate. If you threw other fields in ROWS/COLUMNS, it would only show the details of that one entry.

Now contrast that with the filter you are putting in place. There are MANY records for coasters that meet the TYPE = STEEL. All of those will be included in the pivot table, and will be summarized and aggregated upon.
 
Upvote 0
Think of this hypothetical:

You have the dataset above, but there is one more roller coaster on the list. This one is different from the others in that its TYPE = TITANIUM. If you put TYPE in the FILTER and selected only TITANIUM from the list, the pivot table would ignore every other coaster on the list, since it is the one and only coaster that meets the criteria of TITANIUM. As far as the pivot table is concerned after that filter is put in place, you have 1 and only 1 record to display. There is no more data, and nothing to summarize/aggregate. If you threw other fields in ROWS/COLUMNS, it would only show the details of that one entry.

Now contrast that with the filter you are putting in place. There are MANY records for coasters that meet the TYPE = STEEL. All of those will be included in the pivot table, and will be summarized and aggregated upon.

Hi, gmhumphr,

There is no rollarcoaster with type = titanium in the data. Are we looking at the same thing?
 
Upvote 0
Hi, gmhumphr,

There is no rollarcoaster with type = titanium in the data. Are we looking at the same thing?

That's why I suggested a hypothetical. Imagine if the same data set you shared had one more line at the bottom, and it was for a TITANIUM roller coaster.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top