+ Reply to Thread
Results 1 to 4 of 4

PIVOT TABLE Calculated field not calculating the way i want

  1. #1
    Registered User
    Join Date
    12-19-2016
    Location
    Leesburg, In
    MS-Off Ver
    2013
    Posts
    2

    PIVOT TABLE Calculated field not calculating the way i want

    So, I am trying to create an on-time delivery graph from a table with the promised date, dock date, a calculated column indicating (On-Time) or (Late), calculated column indicating 0 for (On-Time) 1 for (Late). The issue I am running into is when I transfer these columns to a pivot table. I cannot seem to figure out what calculated field i need in order to give me the percentage for On-Time Delievery.

    I have count(Num of Orders) - Sum(On-time vs late) / count(Num of Orders) * 100

    This formula gives me what I need for the OTD calculation on the table. Unfortunately, I cannot get the data to show what I need on the pivot tables calculated field. Please look at my pivot table...

    You can see Average of Field1 (average doesn't matter here, it says the same with count or sum). That calculation is count(Num of Orders). I do not have the dates grouped here. However, it self-groups when we have 5 orders that were sent out on 1/4/17. I want it to be able to say what the 2nd column says. Please let me know if i need to provide more information.

    2017-07-11.jpg
    2017-07-11_124031.jpg
    Last edited by lilblevs11; 07-12-2017 at 09:25 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: PIVOT TABLE Calculated field not calculating the way i want

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: PIVOT TABLE Calculated field not calculating the way i want

    Hi,

    If you have Power Pivot, you can create measures to calculate this for you. If not, you need to add a new column to your data that simply returns 1 for each order. You can then use that new column in your calculated field thus
    ='On-time vs late' / New_field * 100
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Registered User
    Join Date
    12-19-2016
    Location
    Leesburg, In
    MS-Off Ver
    2013
    Posts
    2

    Re: PIVOT TABLE Calculated field not calculating the way i want

    You know that you really make people feel stupid when you figure it out that quick xlnitwit. lol, I'm totally kidding! But, that did fix the issue. I'm just sorry I didn't figure it out first. I must have been looking at it too long.
    So, I just entered a 1 into the extra column at the end and summed that field on the calculated field. The final formula is =(Entry-Late)/Entry

    It's similar to what you have but I changed the column names to make sense.

    Thanks for your help guys. Sandy666 I will add in more information on future request. Thanks for the direction.

+ 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. Pivot Table Calculated Field: Different categories in the same field
    By happydays886 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-08-2016, 09:49 PM
  2. Pivot Table: Calculated Field based on Running Total Field
    By EvolvingMonkey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 06:27 AM
  3. Replies: 0
    Last Post: 08-15-2016, 02:07 PM
  4. [SOLVED] A pivot table field calculated using other field values as fields?
    By chrisf78 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-07-2015, 03:08 AM
  5. [SOLVED] Referring to a Sub-Field on Calculated Field Pivot Table Column?
    By figo12 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-27-2014, 02:02 PM
  6. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  7. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM

Tags for this Thread

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