Discussion board where members can learn more about Qlik Sense App Development and Usage.
Hello, I am sure this is pretty easy, but I want to create a table in the script and have it list dates every 14 days from a min date found in table A to the Max Date table A.
Something Like This
Change vLastDate logic based on your requirement
If Today()-'$(vlastDate)'=14 Then
Load * inline [
Max(Date) as Max_Date,
Min(Date) as Min_Date
LET vStartDate = num(Peek('Min_Date'));
LET vEndDate = num(Peek('Max_Date'));
Drop Tables Table,Table2;
$(vStartDate) + RowNo() - 1 AS Num,
date($(vStartDate) + RowNo() - 1) AS TempDate
$(vEndDate) - $(vStartDate) + 1;
AAR, thank you for this and actually very accurate based on my title, but I want to generate dates in 14 day increments, IE Jan 1 Jan15 Jan 29 etc...
Table: LOAD * Inline [ MinDate,MaxDate 01/01/2016,01/06/2016 01/01/2017,01/06/2017 ]; Date: LOAD (MinDate + (IterNo()-1)*14) as Date Resident Table While (MinDate + (IterNo()-1)*14) <= MaxDate;