Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calculating an end date to be within business hours

Hi

The project that i am working on is on IT Calls that are logged.  Depending on their priority, they need to be completed during business hours. (see below)

PriorityBusiness Hrs to Resolve
312 hrs
424 hrs
540 hrs

I need to calculate the End Date & Time of the Call which needs to be within business hours.    My business hours is as follows:

Monday to Friday from 8:00  to 17:00 .  Weekends and Public holidays are excluded.  Below is a list of public holidays.

 

01-Jan
21-Mar
     27-Apr
01-May
16-Jun
09-Aug
24-Sep
16-Dec
25-Dec
    26-Dec

I have attached a sample list of Calls logged, its priority and business hours for Call to be closed.  

Please can you assist. 


Please note a call can be logged out of business hours (ie on weekends and after 17:00, however they only allowed to be solved within business hours)

Kind regards

Nayan

13 Replies
Anonymous
Not applicable
Author

Hi Manish

Just following up, did you have a look at your scripting.  By the way, your scripting works perfectly, except when it falls on the weekend, which gives the TargetResolveDateTime on a Sunday.

Thanking you in advance.

Kind regards

Nayan

MK_QSL
MVP
MVP

Sorry was busy with my own stuff.

Please check enclosed file for the solution. Let me know if this also not works.

Anonymous
Not applicable
Author

Hi Manish

No problem, I totally understand.  Thank you for getting back to me.  Will try it out and let you know.

Kind regards

Nayan

Anonymous
Not applicable
Author

Hi Manish

Thank you.  The formula works perfectly. 

Nayan