+ Reply to Thread
Results 1 to 11 of 11

Calculating Columns/Fields in PowerPivot

  1. #1
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Exclamation Calculating Columns/Fields in PowerPivot

    Good morning Excel Forum Gurus, experts and junkies,

    I need your assistance. I would consider my skills with Excel to be good...not Godly but good! However, I have very little experience with PowerPivot and think this would be a better tool than creating several macros to create the report. I have uploaded the data I am using to create my report. The problem I am running into is creating some calculated columns. Some additional background on the data I have attached.

    Bench Mark Data
    So this is a table of production times based on batch size, product type and customer. The first Batch time column is if the tech works 1 device specific to that product type and customer then it will take that many minutes to complete. The second column is if the batch size contains 2 devices and then that time needs to be multiplied by 2, and the third column is if the batch size is 3 and the time in that column should be multiplied by 3 to get Expected Total Elapsed Time. Then the fourth column represents a batch size of 4 or more and then that time needs to be multiplied by the size of the batch to get Expect Total Elapsed Time.

    Tech Time Report
    So this is the raw data by tech with all of the time worked per batch of devices.

    Tech Production Report
    Is the PowerPivot table I am trying to create.

    Currently, my pivot table includes by tech, the product worked, customer the product belongs to, the elapsed time per batch and then the batch size.

    I want to be able to...

    1. Calculate what the techs expected lapsed time should be with the criteria provided.

    2. Calculate the percentage of actual time to expected time.

    I will also be eventually adding a time clock portion to this pivot table to calculate utilization, but that is for a different day. I first want to get the above accomplished first and build from there.

    Can ANYBODY help me out?!?!?!?!!?
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Columns/Fields in PowerPivot

    Hi,

    I don't understand how the data is related. For instance Tech Time Report for ID 668 (row74) shows elapsed time of 141 which agrees with the Tech Production report, but ID 883, row 89 shows 8207 on Tech Time Report but 24664 on the Production report.

    Neither do I understand how you are calculating the elapsed times on the Tech Time report.
    Shouldn't ID668 be calculated from the Benchmark data (row 210) as

    1 x 20, 2 x 18, 3 x 16 & 4 x 14 x 1 instance (K74) = 160, and

    ID 883 be
    1 x 15, 2 x 13.5, 3 x 12, & 4 x 10.5 x 3 instances (K89) = 360
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Calculating Columns/Fields in PowerPivot

    Richard-

    I reviewed the data from the Tech Time Report and need see additional issues with the elapsed time as you pointed out and need to review the reporting from the application that creates this report and determine where the glitch is. Lets ignore that for the time being...in the simple form, I have 2 data sheets. One consisting of production by tech with customer and device type information and the second being the standard to which tech production gets measured(Bench Mark Data). I want to be able to calculate the production a tech is doing relative to the bench mark...so if the bench mark is 15 minutes per device A for Customer 123 and tech 1 has a production time of 18 minutes per device A for Customer 123, then tech 1 could use additional coaching or need to see if they were working on something else at the same time. The bench times fluctuate based on the quantity of devices being worked per batch and the calculation would need to take that into consideration. Does that make it any easier?

    I am open to other suggestions to calculate productivity...

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Columns/Fields in PowerPivot

    Hi,

    Does the attached offer a way forward.

    I've brought the two data sets into the same workbook.
    On the Benchmarks sheet I've added the new columns I:M which take average times for working on 1,2,3,4 & 5+ devices.
    On the TechTime report I've added columns P:R. P establishes which row on th Benchmark contains the ID. Q looks up the elapsed time benchmark. I've assumed your Benchmark timings are minutes and the Tech Time elapsed times are seconds, and hence multiplied the benchmark times by 60.
    Column R is simply the actual elapsed time divided by the benchmark time. Hence higher %s are better than lower ones.

    The Pivot table simply reports the technician and the %s by ID. Being a Pivot table of course you can dice and slice it as you wish. You'll need to decide whether the actual elapsed tomes are correct of course.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Calculating Columns/Fields in PowerPivot

    I am going to have to review a little bit further but it looks like this was more the route I was trying to go. Is there any way to incorporate these types of calculations within PowerPivot?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Columns/Fields in PowerPivot

    Quote Originally Posted by dwhite30518 View Post
    I am going to have to review a little bit further but it looks like this was more the route I was trying to go. Is there any way to incorporate these types of calculations within PowerPivot?
    Sorry but I'm not familiar with the PP Add In. I understand it's main advantage is the ability to use more than one database.

    However for your application I don't see a particular problem in bringing two separate table together as I've done with creating an additional field based on helper columns and links to another table. In a way it's presumably achieving the same result as a PP add in, but arguably in a more straightforward way.

  7. #7
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Calculating Columns/Fields in PowerPivot

    OK...I get everything and I think I could probably work with this however I really need to calculate expected time based on batch size not by an average time of the batch sizes. So if a record has a batch size of 4+ and another record, with the same product and same customer,has a batch size of 2, the time gets counted accordingly...

    ex...

    Tech works on ItemId X and has 3 different batches they worked...batch 1 contained 2 devices, batch 2 contained 6 devices and batch 3 contained 3 devices, then batch one would be calculated using the value in column E on the bench marks worksheet for that ItemId, batch 2 would be calculated using the expected time from column G of the bench mark worksheet for that ItemId, and then batch 2 would be calculated using the time in column F for that ItemId.

    What is the best way to do this? Is it even possible?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Columns/Fields in PowerPivot

    Hi,

    Change Q2 on the Tech Time Report to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copy down. You can also remove the I:M columns on theBench Marks tab.

  9. #9
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Calculating Columns/Fields in PowerPivot

    Richard-

    How would I convert your formula of
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To a VBA code to enter into a specified column?

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Columns/Fields in PowerPivot

    Quote Originally Posted by dwhite30518 View Post
    Richard-

    How would I convert your formula of
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To a VBA code to enter into a specified column?
    If you mean how do I get VBA to enter the formula in say column Z rather than doing it manually then

    Please Login or Register  to view this content.
    changing the VBA sheet CODE Name (Sheet1 here) as appropriate.

  11. #11
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Calculating Columns/Fields in PowerPivot

    Thank you for your help!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] calculating field in powerpivot using linked table
    By nsr1989 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-24-2013, 12:31 PM
  2. Replies: 1
    Last Post: 09-09-2013, 10:20 AM
  3. Help with Dynamic Grouping to Subtotalling fields in PowerPivot Table
    By mikeTRON in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-12-2013, 01:10 PM
  4. Replies: 0
    Last Post: 11-20-2012, 05:34 AM
  5. Create relationships in PowerPivot using two unique fields
    By Algonquin Dude in forum Excel General
    Replies: 0
    Last Post: 12-01-2011, 09:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1