+ Reply to Thread
Results 1 to 14 of 14

Pivot Table Help! Find events with response times longer than 6 minutes

  1. #1
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Question Pivot Table Help! Find events with response times longer than 6 minutes

    I have a report that shows information on our call light system at a hospital.
    The report shows:
    Unit
    Date
    Room #
    'Activity'
    Time/Data

    Unit/Date doesn't really matter because I only pull the report for the current day and have to pull individually for each unit.

    For the Activities:
    Normal is the actual time of day that the call light was pushed.
    Total Time is the amount of time it took once the call light was pushed for the nurse to respond.

    I need to investigate all call lights that were answered after 6 minutes or longer. What I need to know was what time of the day it was to determine if there are trends.

    I know I can do this with a pivot table but after messing with it for way to long I am needing your help!! Please help!!

    Attached is an example of a report.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Have you attempted to sort your data in any way?
    The yellow rows appear to be subtotals that don't match up with the data above them.

    It would be easier to help you if we could understand what we're looking at.

  3. #3
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11
    Quote Originally Posted by jason.b75 View Post
    Have you attempted to sort your data in any way?
    The yellow rows appear to be subtotals that don't match up with the data above them.

    It would be easier to help you if we could understand what we're looking at.

    I should have unhighleted before uploading. The highlighted rows are the total time, it's those over 6minutes that I want to determine time of day.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Ok, so just to confirm, the yellow rows do match up to the data above them, even if the room number is not the same?

    Also, you want all of the rows related to the yellow line showing, not just the 'Total Time'?

  5. #5
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Oh, wow! No I must have uploaded a file that was filtered. I apologize.
    Here is the original report so this has no filters and should make more sense. Thank you so much for looking at it!
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Ok, I can't see any way to get that to a pivottable, possibly with power pivot, but I need to be sure that I'm following what you need first.

    Try this formula in I5 of your latest sample file, then fill down to the last row of data and filter by column I to show TRUE results only.

    We can understand your need better if you show your expected outcome with a bit of copy and paste

  7. #7
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    How strict are you on this data layout?

    I would be wanting to see a unique identifier column for each call, otherwise you are letting the sorting of the data determine what information is related to each call, ie. the way the data currently sits.

    You could then use Power Query and then pivot tables or formulas to get you what you want.

  8. #8
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    This data layout is just how the report is pulled from the platform, I am able to change it if it quick and easy. This is currently a report we have to provide daily so the less manipulating the better.

    Also Jason.b75 I am unsure what formula you want me to try.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Sorry, that was a moment of monday morning madness! I forgot to add the formula to my reply

    =OR(AND(E5="Total Time",TIMEVALUE(H5)>TIME(0,6,0)),AND(OR(ISNUMBER(SEARCH({"am","pm"},H5))),IFERROR(TIMEVALUE(INDEX(H6:H$956,MATCH("Total Time",E6:E$956,0)))>TIME(0,6,0),0)))

    See if it gives you the expected results when you filter on TRUE.

  10. #10
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    You. Are. Amazing!

    Yes, that works. So if I wanted to change it from 6 minutes to any other time (let's say 5 minutes), would I just have to replace the 6's with 5's?

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    I'm not sure that i have earned such a compliment after forgetting to post the formula

    Yes, to change the time, that is all you need to do.

    I wasn't actually expecting this to be the final solution, it was only meant as a test to see if I was looking at the right information to extract.

  12. #12
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Ok I got too excited. I thought that the room numbers were lining up but that doesn't appear to be the case.

    When I use that formula it shows all of the call lights that took longer than 6 minutes but the date the call light was pushed does not match (the room numbers/dates don't match either).

    My end goal is for it to show both (the time of day the call light was pushed and the amount of time it took for them to answer (Those over 6 minutes)).

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    I'm not sure what you mean, as far as I can see the filtered data looks correct.

    I've re-attached your file with the formula and filter already applied. This one uses a slightly different formula, which shows all of the rows for the calls over 6 minutes rather than just the initial call and the total time taken, aside from the intermediate steps, the results are the same for both methods.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    06-06-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Re: Pivot Table Help! Find events with response times longer than 6 minutes

    Thank you, you are correct this gives me what I need! Appreciate it!

+ 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: 11-28-2016, 01:44 PM
  2. [SOLVED] Pivot Table No Longer Picking Up Data
    By JakeMann in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-16-2015, 09:14 AM
  3. [SOLVED] Pivot Table- Data no longer in table source still showing
    By Smally in forum Excel General
    Replies: 7
    Last Post: 09-10-2014, 11:23 AM
  4. Pivot table no longer sorting correctly (2003)
    By mlk in forum Excel General
    Replies: 0
    Last Post: 02-28-2011, 02:15 PM
  5. pivot table click events
    By G0liath02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2009, 03:20 AM
  6. [SOLVED] Pivot Table Events
    By Blue Aardvark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2005, 05:05 PM
  7. Pivot Table Events
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2005, 10:06 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