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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loop in load script

Hi,

I have a dataset with collections fields NewCD1, NewCD2,...........NewCDn

These are boolian variables i.e. 0 or 1

What I want to do is create a counter that starts at NewCDn and loops backwards to NewCD1 and aggregate a CollectionsCount variable.

However I want the CollectionsCount to stop if NewCD is false and output this value.

I also need the number of variables for NewCDn to be dynamic. What I mean is that I dont want the user to have to ammend the number of variables in the loop. It must automatically start at the last field every time.

I am fairly new to Qlikview so any assitance would be appreciated.

Thanks!

1 Reply
Anonymous
Not applicable
Author

Do you have a sample of this dataset?