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: 
veronicahernand
Partner - Contributor III
Partner - Contributor III

loop through column before after document

Hi, 

I need to design a loop and I need help.

I have two tables:

table1

veronicahernand_0-1610706022027.png

table 2

veronicahernand_1-1610706073577.png

So, field1 is the claim id and field2 is the returning order id (viqmel in sap). 

In the beginning, field3 is the returning order id (the previous document) and field 4 is the following document.

Then, I have to look for the following document of field4, again in table2 (vbfa in sap), so:

veronicahernand_2-1610706240722.png

At the end I need two tables:

table 1(remains the same)

veronicahernand_0-1610706022027.png

and table 3

1 Reply
veronicahernand
Partner - Contributor III
Partner - Contributor III
Author

sorry, table 3 would be like this:

veronicahernand_0-1610706664886.png

 

I would need all the docs related to that returning order id.

 

Thanks in advance!!!!