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: 
Claudiu_Anghelescu
Specialist
Specialist

Calculate business working hours

Hi,

I want to calculate the working hours between StartDateTime and EndDateTime.

There are multiple posts on community but only for 1 location, e.g. 09:00 -> 18:00. 

Which approach I have to apply if I have different locations with different working hours? 
E.g:

Paris:        09:00 -> 18:00

London : 08:00 -> 16:00 

Roma:      07:00 -> 15:00

And excluding holidays that can be different for each location. 

@Kushal_Chawda  

@rwunderlich 
@marcus_sommer 

@IAMDV 

To help community find solutions, please don't forget to mark as correct.
Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

The logic itself didn't change if you have a single location or multiple ones with different properties. You need just to repeat your basic-data for the holidays / working hours and merge them together - personally I would simply concatenate them and adding the location to the key-field.

- Marcus

View solution in original post

2 Replies
marcus_sommer

The logic itself didn't change if you have a single location or multiple ones with different properties. You need just to repeat your basic-data for the holidays / working hours and merge them together - personally I would simply concatenate them and adding the location to the key-field.

- Marcus

Claudiu_Anghelescu
Specialist
Specialist
Author

How to proceed if I have vStartHour=5, vEndHour=2 ?

To help community find solutions, please don't forget to mark as correct.