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: 
santhosh_k_n
Creator II
Creator II

for loop in variable

Hi All,

Is it possible to use for loop in a variable.?

Thanks,

Santhosh

3 Replies
anbu1984
Master III
Master III

Can you elaborate more on your requirement?

santhosh_k_n
Creator II
Creator II
Author

my requirement is to display volume for rolling 28 days in a line chart  where x-axis is days and y-axis is volume

consider table :

datedate-28

volume expression

to be in chart

13/05/2014

15/04/2014sum({<date = {>=15/04/2014,<=13/05/2014}>}quantity)
12/05/201414/04/2014sum({<date = {>=14/04/2014,<=12/05/2014}>}quantity)
..
..
01/05/201403/04/2014sum({<date = {>=03/04/2014,<=01/05/2014}>}quantity)

This what i required

Table represent seems easy but dynamically should display volume for last 14days

Not applicable

You should create an Asof Table

See a doc I have written on that topic:

Simply create YTD, moving totals and comparisons versus Year Ago

Gysbert also explained this topic.

Fabrice