Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I haven't found anything in documentation pdfs or posts that address my current assignment, so I'm asking here. These are the things I'm working with:
I can get results using NetWorkDays in conjunction with Frac,Interval,Time, etc as suggested in other posts on here but it's never accurate; and I'm figuring it's because of the fact that requests can be opened during the weekend.
Thank you for your assistance.
hi
try like this:
if(SEV=3 or SEV=4, networkingdays(ReloadTime() - incident.open), ReloadTime() - incident.open)
Thank you for your prompt reply, Avinash, but your proposed expression is missing some things I need:
Any other suggestions?
try if this (and Gysbert's link) can help you
The one discussion you sent me about "Calculate hours between two Date/Time strings" had something I was looking for - simplicity. Particularly this post here:
=Interval(
(RangeMin(frac(Closedate), MakeTime(18))
- RangeMax(frac(Logdate), MakeTime(8)))
+ (NetWorkDays(Logdate, Closedate-1) * MakeTime(10)) // Only 10 hours per whole day
)
Just an expresssion using what QV has already. No calendar tables, nothing fancy. Fortunately, I don't need such granularity for the business hours so I don't think I need the MakeTime part. This expression works unless the request is open through the weekend, which isn't what I need:
if(num(WeekDay(incident.sys_created_on))>4,
1-NetWorkDays(timestamp(incident.sys_created_on),timestamp(ReloadTime())) + Frac(timestamp(incident.sys_created_on)-Timestamp(ReloadTime(), 'hh:mm'))
,
NetWorkDays(timestamp(incident.sys_created_on),timestamp(ReloadTime())) + Frac(timestamp(incident.sys_created_on)-Timestamp(ReloadTime(), 'hh:mm')))
Any further help is appreciated!
Hi David,
Can you please share your app??
Sure, here's the trial app I've been working on.