+ Reply to Thread
Results 1 to 3 of 3

Calculated Field - difference between value at current row and below row

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    Calculated Field - difference between value at current row and below row

    Dear Experts,

    I have a pivot table which data source is audit trails. In the first column of the pivot table will hv the series of dates, second col is old value and the third col is new value. I wish to track period when the old value change to new value, but just for specific items, which made me think to apply the formula in the pivot instead of in the original data table. So, is it possible to have an additional field that will return value of the period between date1 in the current row and date2 in bottom row in column Date?

    Thank you in advance.

    DZ

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Calculated Field - difference between value at current row and below row

    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 use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Calculated Field - difference between value at current row and below row

    Quote Originally Posted by Pepe Le Mokko View Post
    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 use the paperclip icon to open the upload window.

    View Pic
    Hi,
    Thank you for the quick response.

    Sorry for the delays in responding as I was trying very hard to try on my own and at the same time to built a mock data for better clarification and your kind perusal.

    The attached file consists of 3 tabs of worksheets. "Data" tab consists of the raw data that we use to populate the pivot table in "pivot" tab. In data tab I highlighted some rows. "Members" is a namedrange where the values are as follows:-
    1. MyGroup
    2. User1
    3. User2
    4. User3

    Originally the data exported from audit trails are all from column A until column G. In column H & I have some formulas to return the values based on criterias as below:-
    1. Value in column "New Value" is always "MyGroup" (as per formula in column I)
    2. Value in column "Old Value" always match either one in the "Members" namedrange EXCEPT "MyGroup" (as per formula in column I)

    Actually the purpose of this is to track how many times a ticket is being assigned to MyGroup and each staff in MyGroup and how much man days is used to attend the case which is calculated from the datetime the case goes into MyGroup bucket, until the case is signed out from individual bucket.

    From col H, I identified the datetimes involved. When I do the pivot table (pls refer to "pivot" tab), I filter the blanks for field "Assigned&Responded", it will display those involved dates chronologically. So, I set it to show me the difference between those dates (next datetime minus prev datetime) and it shows me the duration correctly in the grand total. However, what I need is these durations must be shown under the individual column so that the report reader can know how much the duration for him/her to attend the case. But I have tried so many ways but to no avail.

    So, would appreciate it very much if someone with better expertise to come out with a solution. This pivot table should be dynamic for other ticket numbers in future and will be the main content as a report to management in terms of SLA achievement.

    Thank you in advance.

    DZ
    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. Current date in a calculated field of a table
    By Galven in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2015, 11:27 AM
  2. Replies: 0
    Last Post: 10-24-2013, 10:59 AM
  3. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  4. Replies: 2
    Last Post: 03-06-2009, 11:49 AM
  5. [SOLVED] PivotTable:Using a calculated field result in another calculated f
    By Alice in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-08-2006, 12:25 PM
  6. [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
  7. [SOLVED] how to create a calculated field from another calculated field?
    By Eldon in forum Excel General
    Replies: 0
    Last Post: 01-09-2006, 11:45 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