Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dclark0699
Creator
Creator

Event Within Timeframe of Another Event

Hi,

I have a table of appointments (including appointment date) and a table of diagnoses(including diagnosis date)

Is it possible in load script to flag the answer to the question "Did you have xx Diagnosis within xx Months of your appointment?" for every appointment - without Cartesian joining the data together and subtracting dates?

Thanks!

3 Replies
swuehl
MVP
MVP

You can add the end date of the time periods to your appointment table (read the table in, for each appointment record, add xx months to the appointment date creating a new field).

Then use intervalmatch (the extended version to use patient ID as additional key) to map your diagnosis to the created intervals.

dclark0699
Creator
Creator
Author

This would work - but would it be possible to then remove the synthetic table Interval Match creates?

swuehl
MVP
MVP

Sure, you can join the tables if you want.