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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help - For next loop in a variable

hi, all

i need to create a variable that its calculation is based on a dynamic FOR NEXT loop from other dynamic variables.

something like:

=1

=3

for i = 1 to

=+i

next i

thanks,

moti

5 Replies
Anonymous
Not applicable
Author

Hi Moti,

try:


Set =1;

Set =3;

for i = 1 to

LET
=+i;

next i

Regards

Neetha

maxgro
MVP
MVP

let a=1;

let b=3;

for i = 1 to $(b)

  let a=$(a)+$(i);

  trace i=$(i);

  trace a=$(a);

// trace b=$(b);

next i;

Not applicable
Author

thanks.

Not applicable
Author

thanks

maxgro
MVP
MVP

Please marks the correct/useful answer to close the thread, thanks and good Qlik