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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

Loop

Hey, I have a METHDM.qvd file.

I have 3 columns Main Item, Sub Item, AQSTYP 

risabhroy_03_0-1657693983150.png

My condition is - 

1) If I get AQSTYP = '-' then we have to keep that record

2) If I get AQSTYP = 'R' then we have to keep that record

3) If I get AQSTYP = 'M' then we have to keep that record and then we have to take that sub item and search in Main Item and then take that record also.

3 Replies
vinieme12
Champion III
Champion III

Load temp:
MainItem,SubItem,AQSTYP
From SomeSource;

NoConcatenate
ExistinSubItem:
Load * resident temp
Where Exists(MainItem,SubItem);
Drop table temp;
Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
risabhroy_03
Partner - Creator II
Partner - Creator II
Author

Hey,

This three-column table is a different transformed table called Temp.

I want to check Temp.Subitem with METHDM.MainItem.

vinieme12
Champion III
Champion III

can you post some sample data in excel and expected output

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.