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: 
Not applicable

Interval Match - SQL-Between Equavalent

Hi I am trying to trying to group various time stamps into intervals this is the sort of data that i have

Interv Table

IntervalStartIntervalEndinterval time
07:00
07:3007:00 - 07:30
07:3008:0007:30 - 08:00
08:0008:3008:00 - 08:30
08:3009:0008:30 - 09:00
09:0009:3009:00 - 09:30
09:3010:0009:30 - 10:00
10:0010:3010:00 - 10:30
10:3011:0010:30 - 11:00
11:0011:3011:00 - 11:30

Dialer Table

acc_codecallednumbercampaigndescriptionendstate_descriptionnumbertypestarttimeSTime
716458539282201BLO_FNB_COLL_01 - 168Agent AnsweredWork2010/08/02 14:0014:00
716458766679811BLO_FNB_COLL_01 - 168RingingCell2010/08/02 13:5913:59
671278785655645BLO_FNB_COLL_01 - 168RingingCell2010/08/02 12:4212:42
671278785655645BLO_FNB_COLL_01 - 168RingingCell2010/08/02 14:5314:53
704628794945247BLO_FNB_COLL_01 - 168RingingCell2010/08/02 12:3012:30
704628794945247BLO_FNB_COLL_01 - 168RingingCell2010/08/02 14:4014:40

I want to track the volume of calls per endstate, per interval, on a daily ,monthly,on a campaign level etc....

This is my script but i am not sure if the correct way to do it.

Any help will be appreciated.

Interv:
LOAD
TIME(IntervalStart,'hh:ss')as "IStart",
TIME(IntervalEnd,'hh:ss')as "IEnd",
[interval time]as "IntervalTime"
FROM

(ooxml, embedded labels, table is Sheet1);

Dialer:
LOAD acc_code,
callednumber,
campaigndescription,
endstate_description,
numbertype,
starttime,
TIME(STime,'hh:ss')as "Mtime"
FROM

(ooxml, embedded labels, table is Sheet1);


IntervalMatch ( Mtime) LOAD IStart,IEnd RESIDENT Interv;

Thanks

Shaun

0 Replies