Notification

Icon
Error

Request: Helpdesk - Time worked per agent, per ticket type, per day

Posted: Friday, February 14, 2020 5:01:02 PM(UTC)
Ben at CSS

Ben at CSS

Member Original PosterPosts: 1
0
Like
What I am trying to see: A report of how many hours were worked by each agent on each ticket type, ordered by day. So that we can say "Agent A spent 6 hours on Customer Service tickets on Tuesday and 7 hours on Wednesday. So, he was mostly unavailable to complete any Internal tickets on those days" or "It looks like we are waiting until the end of the week to get our Maintenance ticket work completed, let's try to spread that out more throughout the week"

I have modified the existing "Helpdesk: Count of Tickets per Agent, Month and Type" to show the count per day instead of month. Now what I need is to change the "Count" to "Hours Worked" instead. I have tried swapping in the related Select/Convert/Join/Group/Order sections from other "Time Worked" reports but it is clear I am missing something. I am a SQL noob, so no surprise there.

Bonus points if you can limit it to the last 30 days of results. Thanks in advance to everyone who takes a look at this!

Here is what I have so far:

Code:
Select Top 1000000 DatePart(yyyy, htblticket.date) As Year,
  DatePart(mm, htblticket.date) As Month,
  DatePart(dd, htblticket.date) As Day,
  htbltickettypes.typename Type,
  htblusers.name As AssignedAgent,
  Count(htblticket.ticketid) As TicketCount
From htblticket
  Inner Join htblagents On htblagents.agentid = htblticket.agentid
  Inner Join htblusers On htblusers.userid = htblagents.userid
  Inner Join htbltickettypes On htbltickettypes.tickettypeid =
    htblticket.tickettypeid
Group By DatePart(yyyy, htblticket.date),
  DatePart(mm, htblticket.date),
  DatePart(dd, htblticket.date),
  htbltickettypes.typename,
  htblusers.name
Order By Year Desc,
  Month Desc,
  Day Desc,
  Type,
  AssignedAgent



Active Discussions

Lansweeper SNMPv3 global credentials ?
by  JeremySG   Go to last post Go to first unread
Last post: Today at 9:01:16 AM(UTC)
Lansweeper Help Desk not disabling for regular users?
by  Hagobian  
Go to last post Go to first unread
Last post: Yesterday at 11:20:17 PM(UTC)
Lansweeper Wake on Lan wol.exe issue
by  Socal_s197   Go to last post Go to first unread
Last post: Yesterday at 10:08:02 PM(UTC)
Lansweeper Changing DNS Servers via CMD or PowerShell
by  TheITGuy  
Go to last post Go to first unread
Last post: Yesterday at 8:46:06 PM(UTC)
Lansweeper Scanning IP Range Subnet
by  TheITGuy   Go to last post Go to first unread
Last post: Yesterday at 8:42:04 PM(UTC)
Lansweeper Access LS Knowledge base from outside network
by  TheITGuy  
Go to last post Go to first unread
Last post: Yesterday at 8:36:55 PM(UTC)
Lansweeper Problems with deploying PowerShell script
by  TheITGuy   Go to last post Go to first unread
Last post: Yesterday at 8:29:45 PM(UTC)
Lansweeper Swap asset details between 2 computers?
by  Mindspiked  
Go to last post Go to first unread
Last post: Yesterday at 7:47:03 PM(UTC)