Solved

Is it possible to show a Percentage in a pivotTable by a ROW instead of the GrandTotal

Posted on 2011-09-21
2
228 Views
Last Modified: 2012-05-12
Hi Experts,

I have tried adding a calculated Fields:

SUM(CAR)/Area called % CAR
SUM(BIKE)/Area called %CAR
But  I am getting a DIV/# error

I have also tried
% of row - which returns 100%
and % of column which returns the SUM(CAR)/GrandTotal - which I dont want want.


This must be possible ?
Percentage---Copy.bmp
0
Comment
Question by:Jimmy_inc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
dlmille earned 250 total points
ID: 36578711
@Jimmy_inc - pictures are great, and thanks for that.  Especially when you have "dummy data", (notwithstanding the fact I jumped on this one :) it helps you get faster responses when you upload the "dummy" spreadsheet!

See: http://www.pcreview.co.uk/forums/pivot-table-question-creating-new-field-calculates-thedivision-one-data-field-another-t3514147.html

You need to add a field as your "Row counter" (a column of 1's) to divide by the sum of the rows meeting the criteria of the pivottable setup..

Calculated field would then be Car% = Car / RowCount, etc.

ListFormulas from PivotTable:
Car%      =car/RowCount
Bike%      =bike/RowCount

However, your data is intriguing - and perhaps you intended it to be so.  This is a bit more sophisticated.

Car% = Car / (Car + Bike) ?  The percentage of Cars to the total transportation vehicles?  Is this what you'd like to do?

ListFormulas from PivotTable:
Car%      =car/(car+bike)
Bike%      =bike/(car+bike)

In that case, see example 2 in the attachment...

And, finally, if you have more than cars and bikes, we can modify "RowCount" to actually be the sum of all vehicles per instance... (in this case, would turn out to be the same as Car+Bike) and as a result, we have example 3 in the attachment...

ListFormulas from PivotTable:
Car%      =car/VehicleCount
Bike%      =bike/VehicleCount

See attached..

PS - exactly what is the calculation you're looking for?  :)


countingCars-r1.xls
0
 
LVL 2

Assisted Solution

by:sanofi-aventis
sanofi-aventis earned 250 total points
ID: 36581325
Jimmy,

I think your data is structured incorrectly to get the results you want. When using pivots, you want your data to be more linear. Your Bike/Car should become an atrribute of the fact information and then it can be compared side by side using the % of row values. If this is possible, You will be able to evaluate much easier.
 Example of new layout
sincerely,
T-Bone
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question