Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
alkesh_sharma
Creator III
Creator III

Set Analysis for Nested loop

Hello,

Can anybody please tell me the set analysis statement for nested loop.

10 Replies
jerem1234
Specialist II
Specialist II

Here try this:

=mod(month(date#([Rolling Month], 'MMM - YYYY'))-4, 12)+1+(Year(addmonths(date#([Rolling Month], 'MMM - YYYY'),-3))-2005)*12

You can use this as calculated dimension or in script. You might also be able to condense this if certain fields exist and are in date format.

You might even be able to sort by the date and just use something like rowno() in the script. The way you go about it depends on how your data looks.

Hope this helps!