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: 
Anonymous
Not applicable

To get iteration count for each iterations

I m using a tFileList to get all the files from a folder.Now it gets iterated based on the number of files. I want to get the Iteration number for each iteration at the end of each iteration. How can we do it?

Labels (2)
1 Solution

Accepted Solutions
fdenis
Master
Master

use "(Integer)globalMap.get(tFileList_x_NB_FILE)"
sorry I forget one B.

View solution in original post

4 Replies
fdenis
Master
Master

use "(Integer)globalMap.get(tFileList_x_N_FILE)"

fdenis
Master
Master

x is the number of your FileList component use 1 by default
David_Beaty
Specialist
Specialist

Use something like a tSetGlobalVar component before the tFileList, set that a value to 0. Then the first component  on the iterate flow is another tSetGlobalVar to increment this global variable by 1 every iteration.

 

Thanks

 

David

fdenis
Master
Master

use "(Integer)globalMap.get(tFileList_x_NB_FILE)"
sorry I forget one B.