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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Christophe_DR
Contributor
Contributor

Linking dates to different periods but with same name

Hi, I have two tables with test data. One containing information of incidents opened on a specific date and assigned to an ART (01...03). Second table contains information on release periods (format YYYYQ#_ART###), but start and stop date can be different for each ART. I need to report on release period (format '2020Q#', PI_NAME in script) which I derive via subfield function.

I want to link each incident to the proper release period. I tried with the IntervalMatch function, but I'm missing something I guess.

for example:

INC01 should be linked to 2020Q1_ART01

INC02 should be linked to 2020Q1_ART02

If I report on 2020Q1, I should see these two incidents

thx in advance

Incident table:

IncidentDate_openART_NAME
INC_0128/03/2020ART01
INC_0210/02/2020ART02
INC_0320/07/2020ART02
INC_0415/05/2020ART03
INC_0519/08/2020ART01
INC_0617/09/2020ART02
INC_073/04/2020ART02
INC_0827/03/2020ART01
INC_097/04/2020ART03
INC_1019/03/2020ART01

 

PI table:

PI_KEYPI_STARTPI_STOP
2020Q1_ART011/01/202031/03/2020
2020Q2_ART011/04/202030/06/2020
2020Q3_ART011/07/202030/09/2020
2020Q1_ART025/01/202029/03/2020
2020Q2_ART025/04/202025/06/2020
2020Q3_ART025/07/202026/09/2020
2020Q1_ART037/01/202030/03/2020
2020Q2_ART031/04/202016/06/2020
2020Q3_ART0310/07/202029/09/2020

 

Current load script:

PI:
LOAD
PI_KEY,
subfield(PI_KEY, '_', 1) as PI_NAME,
subfield(PI_KEY, '_', 2) as PI_ART,
PI_START,
PI_STOP
FROM [lib://AttachedFiles/INC_PI_map.xlsx]
(ooxml, embedded labels, table is PI);

INC:
LOAD
Incident,
Date_open,
ART_NAME
FROM [lib://AttachedFiles/INC_PI_map.xlsx]
(ooxml, embedded labels, table is INC);

INC_MATCH:
IntervalMatch(Date_open)
Load
PI_START,
PI_STOP
FROM [lib://AttachedFiles/INC_PI_map.xlsx]
(ooxml, embedded labels, table is PI);

Labels (2)
2 Replies
Lauri
Specialist
Specialist

Are you sure Qlik recognizes Date_open, PI_START, and PI_STOP as dates?

Christophe_DR
Contributor
Contributor
Author

I'm pretty sure it does. The result of the load script gives me a table with three dates but I'm still missing the ART link. Also, I use the PI_START and PI_STOP in other reports and are correctly interpreted as dates.

Below the result when I run the load script

Christophe_DR_0-1602480340136.png