Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Generate Missings Months records

Hello

I'm having a table with contains a SerrialNumber, ValidfromPeriod, ValidToPeriod

In a second table i'm having SerialNumber, Period, Scans, ScansRunningTotal

I would like now to create a 3rd table containing for each period between ValidFrom and Valid To a record with the correct record from the 2nd table. When its missing for the specific period he takes the record from the previous period that he can find.

In a script with loops its working, but far to slow (over 5.000.000 Serials), can this be solved by a kind of intervalmatch ?

1 Reply
Not applicable
Author

Found a solution by joining, but first i had to unpivot the table with FromPeriod and ToPeriod