+ Reply to Thread
Results 1 to 8 of 8

Pivot calculated fields - dropping needed fields without dropping calculations

Hybrid View

Aly1978 Pivot calculated fields -... 03-10-2017, 01:11 PM
southward Re: Pivot calculated fields -... 03-10-2017, 02:45 PM
Aly1978 Re: Pivot calculated fields -... 03-10-2017, 05:30 PM
southward Re: Pivot calculated fields -... 03-10-2017, 07:56 PM
Aly1978 Re: Pivot calculated fields -... 03-14-2017, 04:43 PM
southward Re: Pivot calculated fields -... 03-15-2017, 07:45 AM
Aly1978 Re: Pivot calculated fields -... 03-15-2017, 02:01 PM
southward Re: Pivot calculated fields -... 03-15-2017, 10:25 PM
  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    40

    Pivot calculated fields - dropping needed fields without dropping calculations

    I am wondering if there is a way to leave the calculated fields here but show only REG time.

    So for example: Andre Manual one lines 12 to 14. I want the 5% to stay for OTP but not show the REG. If I filter out REG it won't calculate as I need it.

    I have power pivot if that helps-- but have rarely used it yet so I am a bit of a novice.
    Attached Files Attached Files
    Last edited by Aly1978; 03-10-2017 at 01:16 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    Hi,

    You can add a Calculated Field. You can do this by selecting the "Reg" or "OTP" under an employee name in the Pivot Table field.
    Under Pivot Table options select "Fields, Items, & Sets", then select "Calculated Item". Create a new Formula in the "Time Coding" Field such as "=OTP/REG". Give it a name of your choosing. Select "Add".

    Then filter out the REG and OTP to only leave your new formula.
    In the Values field of the Pivot Table field controls select the "Sum of Hours", change the "Show Values As" to "No Calculation".
    Change the "Number Format" to Percentage. Then OK.

    The Pivot Table should then display the data you are requesting.

    See attached.

    Hope this make sense and is helpful.

    Cheers
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-09-2014
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    Thanks-- It does work-- is there a way to get it to total on the far right? also no way to rename it back to OTP versus formula is there? Seems when i type it in it recognizes that as the filtered item and pull is the wrong calculation.

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    Hi,

    Glad to hear that it worked for you.

    Yes, you can show Total to the right. Have to filter out the (blank) from dates.

    You can create a formula with the name "OTP ". (notice the space after the "P"). This will distinguish it from the original.

    See attached.

    Cheers
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-09-2014
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    Ok I need to be able to view this another way.

    Within each site, I need to have the OTP within that site for the week ending date as well as against all the sites together. Only for Nonexempt employees and I want to be able to filter on scope (already in the filter)

    So for an example:

    For OTP % within the site
    Fort Washington on the OT% Within Site for 2/4/17 this should calculate

    2/4/17

    29 OTP/ 287 total hours= 10.1%

    I also want it to be able to calculate % based on total hours for all sites. So in Fort Washington would under 2/4 would be 287/3751 = 7.7%

    It would be great if in the total’s at the end of each date range it could be the total of that site for the OT% within a site

    Same goes for the % based on total for all sites.

    These could also be two separate pivots and would like to be able to filter on scope (already in filter)
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    I am not following your example.

    In the spreadsheet the data for For Washington on 2/4/17 is 7 OTP and 126 Reg.

    I am not able to figure out what you are wanting.

  7. #7
    Registered User
    Join Date
    04-09-2014
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    Ok i realize i wasn't that clear. So I would like to be able to see if its possible to get % of OTP hours within the site itself and overall for each scope.

    So Fort Washington, 2/4 looking at 50 Scope: OTP % for that scope within that site would be 5/287. Can I have that calculate by choosing scope in the above filter? I would want it to change for each scope that a user chooses. Also-- Is there a way to keep REG in the calculations but drop it from the report for viewing?
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Pivot calculated fields - dropping needed fields without dropping calculations

    OK. For something like that you will have to get down into the weeds yourself. I think that once you establish a filter in a Pivot Table it will return values as they pertain to those filters.

    You will have to get into the weeds with personalized formulas. Essentially you will have to identify the various criteria that will return the value 5 (Date, Scope, Non-Exempt, OTP, Hours) and divide it by the criteria that will return the 287 (Date, Reg, Hours, Non-Exempt).

    You can setup your field, setup some filter pull down cells and use a SUMIFS formula divided by another SUMIFS formula.

    Attached is an example using your data, in the "Exp" Sheet.

    Hope this makes sense and is helpful.

    Cheers
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 10-26-2015, 06:49 AM
  2. Existing pivot table and dropping new fields in Values
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-02-2013, 10:55 AM
  3. Replies: 0
    Last Post: 03-27-2012, 08:22 PM
  4. Replies: 0
    Last Post: 08-04-2006, 04:30 AM
  5. [SOLVED] Calculated Fields Based on Running Total Fields?
    By Kruncher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2006, 01:25 PM
  6. Replies: 3
    Last Post: 01-05-2006, 03:45 PM

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