Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
michaelmedaflor
Contributor
Contributor

Start and End Date Conversion

Please if you can help me convert my table from column to rows using load script

Here is my table;

  

VacStartDateVacEndDateEmp
28/01/201802/02/2018140115
23/01/201824/01/2018140009

Please if you can help me convert into this;  

DateEmp
28/01/2018140115
29/01/2019140115
30/01/2020140115
30/01/2021140115
31/01/2022140115
01/02/2023140115
02/02/2024140115
23/01/2018140009
24/01/2018140009

Thank you,

Mike

1 Reply
sunny_talwar

Try this

Table:

LOAD Date(VacStartDate + IterNo() - 1) as Date,

Emp

While VacStartDate + IterNo() - 1 <= VacEndDate;

LOAD * INLINE [

    VacStartDate, VacEndDate, Emp

    28/01/2018, 02/02/2018, 140115

    23/01/2018, 24/01/2018, 140009

];