Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
brindlogcool
Creator III
Creator III

Loop through table

Hi,

I am trying to loop through the table

For i=1 to NoOfRows('TREE1')

Load

FieldValue('PATH',0) as C1,

RowNo() as Rno

Resident TREE1 WHERE RowNo()=$(i);

Next i

But i am getting zero lines fetched .

2 Replies
swuehl
MVP
MVP

Try using Recno()=$(i) in your where clause. And I think FieldValue() indexing starts with 1, please recheck.

Regards,

Stefan

brindlogcool
Creator III
Creator III
Author

Thanks Stefan, its working now. You are right after using 1 as the index value . it is working fine now.