Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

% of in pivot table of excel 2010

Posted on 2014-11-05
2
Medium Priority
?
170 Views
Last Modified: 2014-11-05
I am using excel 2010 and want to do "% of" in a pivot table. Let me explain you what I have and what I need

Below is example of user vacation plan based on department

Employee ID |  Department | Total Users in Department | Vacation Type
1                     | Finance          |    5                                           | Thanks Giving
1                     | Finance          |    5                                           | Xmas
1                     | Finance          |    5                                           | New Year
3                     | Finance          |   5                                            | Xmas
3                     | Finance          |   5                                            | New Year
4                     | Operations    |   10                                         | Thanks Giving
4                     | Operations    |   10                                         | Xmas
5                     | Operations    |   10                                         | Thanks Giving
7                     | Operations    |   10                                         | New Year


I need a Pivot that will give me below output

Vacation Type (by Dept)  | Users on Vacation  | % users on vacation (compared to dept strength - column C)
-Finance                              |   2                              | 40%
Thanks Giving                   |   1                              |  20%
Xmas                                  |   2                              | 40%
New Year                           |   2                              | 40%
-Operations                        |  3                              |  30%
Thanks Giving                   |  2                              |  20%
Xmas                                  |  1                              |  10%
New Year                           |  1                              |  10%
0
Comment
Question by:Gillz
[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 24

Accepted Solution

by:
Phillip Burton earned 2000 total points
ID: 40424297
You can't do this as a PivotTable. It's the Operations total that shows that what you want is "Discount Count", which is not part of Excel (it's part of SQL Server, not Excel).

You can do it outside of it, using FREQUENCY and other formulas.

The attached is the closest I can come up with.
PercentageOfPivotTable141105.xlsx
0
 

Author Comment

by:Gillz
ID: 40424921
Thanks a lot Phillip. That worked for me...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

664 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