Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
QVUser1
Partner - Contributor III
Partner - Contributor III

How to Get to Only Business Hours Between Two Dates From 6.00 Am to 9.00 pm

Hi,

My business Requirement is like this Buddies,

Iam Having two Dates need to extract the following From Them

  • Business Hours From 6.00 am to 9.00 Pm
  • Business Hours from 6.00 am to 9.00 Pm and exclude weekends( here in this scenario friday after 9.00 pm hours should not be calculated upto monday 6.00 am)

Regards,

B.Varma

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Create 2 variables for 6 AM and 9 PM then use below

If(Not WildMatch(WeekDay(DateField),'Sat','Sun'), Only({<Time = {'>=v6 <=v9'}>}Time))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

1 Reply
Anil_Babu_Samineni

Create 2 variables for 6 AM and 9 PM then use below

If(Not WildMatch(WeekDay(DateField),'Sat','Sun'), Only({<Time = {'>=v6 <=v9'}>}Time))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful