Hey so i've been teaching myself excel and have managed to knock up a nice pivot table but have run into what may be a bit of n00b roadblock.
Basically the data i get would be something like the following columns
UNIQUE ID POSITION TITLE DEPARTMENT LOOKUP CODE GENDER(M/F)
Using these columns I turn the lookup code into POSITION GROUP and create an MALE (1 if gender is M else 0) and FEMALE(1 if gender is F else 0)
So the pivot table columns would be:
DEPARTMENT- overall filter
POSITION GROUP- First row label
POSITION TITLE - Second row label
Count of UNIQUE ID- Value
Sum of MALE- Value
Sum of FEMALE- Value
This seems to work ok and displays the total number of men then the total number of women for each job title within each position group
But my problem is once i have the totals for male and female I need to have a percentage field next to each for percentage male vs female
This is what i really can't get my head around I would think i could create a duplicate column for each and then a percentage of function when displaying it but what do i choose it to be a percentage of in that case???
Any advice would be greatly appreciated!
Feel free to flame if this is a retarded question :P
Hi
could you possibly post a sample of your data / Pivot Table?
Edit your post - Click " Go Advanced" - Click the Paperclip and follow the wizard
Cheers - THE WARNING I RECEIVED WAS NOT JUSTIFIED
Hello,
this would be much easier to understand if you could upload a workbook with some sample data, not real data, dummy data, please.
I can't even figure out if DEPARTMENT LOOKUP CODE is three columns or two, and in case it's two, is it [DEPARTMENT] [LOOKUP CODE] or [DEPARTMENT LOOKUP] [CODE] ??
So, make it easy for us to help you. Post a workbook.
cheers,
I agree that a workbook would help though you may simply be able to set the male/female fields to display as percentage of row.
Good luck.
Its [Department] [LookupCode] Sorry it looked better before the spaces wee formatted out :S
Will upload an example as soon as i have access to excel again, currently working on my tablet
Example.xlsx
OK so attached should be some dummy data
the way i see it if i'm gonna add a percentage it'll have to be in the pivot table itself as otherwise i can't see how you could filter by department
It is easier to add the Gender field as column headers and skip your added fields. See the attached, assuming that is what you wanted.
Good luck.
Ok you need to create a calculated field with the formula of =MALE/(MALE+FEMALE)
Unfortunately I've no idea how to do this in '07, it's a lot different to '03
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
Have a look at calculated fields, they add a lot of flexibility
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
Calculated fields are one of the main things I don't understand about pivot tables. Can anyone suggest a good tutorial? the ones i have found have been quite unhelpful.
Thank you all again for your patience
I am probably being dim but I do not really follow this. Have you tried Kyle's suggestion?
If I recall correctly, calculated fields are on the Formulas button in the Pivot Table Tools tab. They are not that complicated - you just have to remember that the fields are always aggregated before the operations are applied, so for example if you add one that is Field1/Field2, then for each total, what you get is Sum(Field1)/Sum(Field2) and not Sum(Field1/Field2)
Good luck.
I am currently trying to work out Kyle's solution, I was replying to your earlier post.
Ive done a calculated field that references the male and female columns and it seems to work but i have to test it with more data. It could just be me being paranoid but I don't understand why it works :S
already much better than I had before though thanks guys!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks