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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

count based on start and end date

Hi Experts,

I want to count the occupancy(ie 'Booking' field) for each week.

My table has From and ToDate of each booking.

I am not sure how to count the bookings falling between start and end date of the week?

4 Replies
Not applicable

Hi Suraj

use the function InWeek

it gives true if the date is in the week

best regards

Chris

Not applicable

Maybe master calendar and intervalmatch in load script?

Or calenadar as an island table ....

its_anandrjs
Champion III
Champion III

Hi,

I suggest you have to use any master calendar for this and then check the expected date for the given ranges.

Regards

surajap123
Creator III
Creator III
Author

Thanks everyone for the suggestions. I have build the master calender, but still not getting the right count of 13 for RoomID 1065.

Infact i want to get the BookingID count per week.

I am not sure how i can add interval match to the script., i am attaching the modified app and source data. !