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

Passing loop counter value to variable

SET A = 0;

FOR I = 1 TO 20

     SET A = $(I) + 10;

NEXT I

My intension is to have another variable that should have a value of variable I + 10;

How can i do these here?

thanks

2 Replies
Not applicable
Author

Sorry i should use LET for variable... thanks

its_anandrjs
Champion III
Champion III

Hi,

Right It would be like

Set A = 0;

FOR I = 1 TO 20

     Let A = $(I) + 10;

NEXT I

Rgds

Anand