Forum Discussion

PhineasT's avatar
PhineasT
Icon for Helper I rankHelper I
3 years ago
Solved

Create Date Time and Shortest Wait Time Measures

I am working on a dashboard that provides various Date and Time outputs.

I need to create a measure or two that will show the 'Date and Time' (in one) associated with the 'Shortest Wait Time' (in the other) during that day.

I need the same for the 'Week' and the 'Month'. 

Desired Output -

 

Sample Data -

TicketNumberTicketDateInTimeOutTimeWaitTime
(hh:mm:ss)
S286/3/20197:03 AM7:36 AM0:33:16
S1116/3/20197:03 AM  
S1126/3/20197:04 AM7:28 AM0:24:29
S2106/3/20197:04 AM1:48 PM6:44:29
S2130527/8/20192:06 PM2:18 PM0:11:54
S149517/8/20192:07 PM2:22 PM0:15:33
S2130537/8/20192:07 PM2:33 PM0:25:47
S2130547/8/20192:08 PM2:46 PM0:38:36
S2336968/30/20194:07 PM4:27 PM0:20:27
S2336978/30/20194:08 PM4:34 PM0:25:49
S1109228/30/20194:08 PM  
S2336988/30/20194:09 PM4:28 PM0:19:47


Current Filter Matrix in Dashboard -

 

11 Replies

  • you may want to rethink your data structure. As it is it cannot handle tickets that are open across day boundaries. "Ticket Date"  should be eliminated, and "In Time"  and "Out Time" should be renamed "In DateTime" and "Out DateTime".

    • PhineasT's avatar
      PhineasT
      Icon for Helper I rankHelper I

      And then what?

      Also, I don't understand your comment..."As it is it cannot handle tickets that are open across day boundaries."

      I merely want a card that contains the date and time (just the date in MM-DD-YYYY form will do), and another card that contains the shortest wait time on that date and the time of day of that Shortest wait time. 

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        Let's say the "In Time" for a ticket is 11:55pm and the "Out Time"  is 02:05am.