I am using CR9 with Track-It 6.5 and I need to produce a report that shows certain call types by certain technicians for all non business hours (m-f 5pm-8am and all day sat and sun)
In the report-edit selection formula->record place:
(
dayofweek({table.datetime} in 7 to 1
)
or
(
dayofweek({table.datetime} in 2 to 6
and
(
hour({table.datetimefield}) in 17 to 24
or
hour({table.datetimefield}) in 0 to 8
)
)
This seemed to work wonderfully! However... I need to put in the utctolocal ({tasks.opendate}) in there somewhere, and being the newbee I am to this I just cant figure that out.
I don't use any UFL's, however just replace your {table.datetime} with the functions' use, as in
(
dayofweek(utctolocal({tasks.opendate})) in 7 to 1
)
or
(
dayofweek(utctolocal ({tasks.opendate}) in 2 to 6
and
(
hour(utctolocal ({tasks.opendate})) in 17 to 24
or
hour(utctolocal ({tasks.opendate})) in 0 to 8
)
)
That didnt seem to work. The closest I have come is by grouping by month the {tasks.opendate} using (@gmt to local) in the details then filter by technicial and work order type. Using the (@gmt to local) gets me the times in local time.
When I use your original suggesion I opened the selection expert and put it as a formula under {tasks.opendate}. It's not seeming to do any of the filters. Maybe I've confused it?
Below is everything that shows up in the selection expert. I dont know if that will help or not.
{TASKS.TYPE} = "Problem Call" and
{TASKS.OPENBY} in ["ABERTRAM", "ASAMPSON", "BCOY", "EMORAN", "GENERIC", "HELPDESK", "JRAMIREZ", "KTALIAFE", "MMACGILL", "RPAYNE", "VHAGERTY", "VOLSON"] and
(dayofweek({tasks.opendate}) in 7 to 1)
or (dayofweek({tasks.opendate}) in 2 to 6
and (hour({tasks.opendate}) in 17 to 24
or hour({tasks.opendate}) in 0 to 8))
Can anyone else help me with this? I need to show all calls M-F after 5pm and before 8am, and all calls on Sat and Sun. I need to factor in the utctolocal so my calls show in my local time. What about and If/Then type thing? I'm grasping at straws here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.