Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2015, 06:24 AM
DaverD DaverD is offline Pivot table arithmetic Windows 7 32bit Pivot table arithmetic Office 2010 32bit
Novice
Pivot table arithmetic
 
Join Date: Jun 2015
Posts: 1
DaverD is on a distinguished road
Default Pivot table arithmetic

Hello.
I am having difficulty with and looking to have an Excel pivot table perform arithmetic. Any insight would be appreciative.

The use case is with resource management. My goal is to have Excel tell me utilization of a person's time given maximums and plans against the maximums.

The maximums are defined in a reference table that identifies people, their role, and the maximum number of hours per week each are planned across five different work categories.

In addition, there is a staffing plan for these people that lists:
The person
The project
The project's work category

A column for each week and the number of hours that person will work that project that week.

This matrix of work over time is transformed into a normalized table via Power Query. I create a pivot table from the normalized table so rollups can be created.



Getting a rollup by person for all the work assigned to them is not an issue. However, it is the utilization I am having difficulty calculating. If I define utilization as "Hours from the staffing plan" divided by the "Maximum hours for a work category", I get the right percentages for the individual record (i.e. non-rollup record). However, rollups produce undesired percentages because the utilization shown is an average of individual records as opposed to doing the "Hours from the staffing plan" divided by the "Maximum hours for a work category".

Does anyone know either (1) how to get Excel to not take an average for rollups or (2) another approach I can take to determine utilization?

I've attached an example. Allow me to elaborate on it.

It is made up of three tabs. Tab 1 is for data entry. Columns A through E uniquely identify a person assigned to a project. A person's name is in Column E. The project which I call 'Work Entity' is in Column D. Work entities are categorized by values in Column C. The person's role is in Column B. Finally, Column A (Domain) represents the maximum number of hours allocated for that Role for that Work Category. For example, in looking at Row 13, 14.80 hours is the maximum number of Large Project hours planned for Network Admins with Person A being a Network Admin.
Columns F through the end represent time in weeks with the matrix populated with planned hours for a person to a project for that week.

Tab 2 is a data table from Tab 1 created with Power Query. The purpose of this table is to be source for pivots.

Tab 3 is a pivot of Tab 2 and where my issues arise. My goal is to identify under and over allocated people. If I know the maximum number of hours allocated for each person-work category (Tab 1; Column A) and the pivot can sum up the hours for each person-work category, then I should be able to determine over allocation (planned/allocated > 100%) or under allocated (planned/allocated < 100%).

I've created a calculated field called Allocation and has the formula of "=IF(Domain>0,Hours/Domain)". I use the calculated column in the Tab 3 pivot.

I want the value 'Sum of Allocation' column to be equal to Hours/Domain for all rows. All is fine when one looks at an individual record. All is not fine when rollups happen.

Rather than getting Hours/Domain for the row, I am getting the average of the 'Sum of Allocation' for rollup section. For example, on Tab 3, look at Columns G, H, I for Rows 20-28 (Person F's Large Projects). For each individual project row, Column I is what I want. However, the rollup in Row 21 is not what I want.

How do I get Row 21/Column H to be equal to Row 21's Column G divided by Row 21`s Column H?

-DaverD
Attached Files
File Type: xlsx temp.xlsx (79.7 KB, 13 views)
Reply With Quote
  #2  
Old 06-19-2015, 09:33 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Pivot table arithmetic Windows 7 64bit Pivot table arithmetic Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,915
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

to be honest with you there are not many members who will go through such a long explanation although you had the good idea of posting a file.
The best way of being helped is to ask one question at a time described as shortly as possible. When it's solved, start a new thread ( eventually linking to the first one), and so on.
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Tags
pivot, pivot table, pivot table arithmetic



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table arithmetic Offset Table and Pivot Table ubns Excel 1 04-17-2015 12:28 AM
Pivot Table Question- Can the table display in the order the boxes were checked/selected? blackjack Excel 0 09-13-2014 08:57 PM
Pivot Table uhlersa Excel 0 10-15-2012 12:01 PM
Pivot table help TishyMouse Excel 2 04-27-2012 10:19 AM
Pivot table arithmetic Excel 2010 formula rounds - arithmetic average calculation YooNaa Kim Excel 1 06-07-2011 08:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft