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: 
yuwon44
Contributor
Contributor

Need Help with looping through dates

Hi,

I am trying to store qvds based on each single day. I have the data In db as

Id, start, end 1, 12/1/2022, 12/30/2022

The above record was actually stored as one record in db but the record was available for 30 days. So in general I need 30 qvds with same record showing up. I was able to get the records seperated out but need help in storing the qvds using loop instead of manually doing the work.

Please provide your thoughts. Any help is highly appreciated!!

Labels (1)
1 Reply
Or
MVP
MVP

This would typically be handled using something along the lines of (Note: Code may not be exactly correct but should be in the ballpark):

Load ID, start - 1 + IterNo()

From YourTable

While IterNo() < (end - start)+1