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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Karuetl
Creator II
Creator II

Filter file based on records on table

I have 10000 rows for example from table 

And I have another flow which is input file and i want to filter out those ID (From above step) that are present in the file  

Example 

--------------

Table A 

Select ID from Table A ;

123

672

888

 

Input File

abcve,672,newjersey

jkuijk,999,california 

 

output should be 

File

jkuijk,999,california 

Labels (2)
9 Replies
David_Beaty
Specialist
Specialist

Hi,

 

Depending on the database in use, upload the ID from the file into a temporary table and then select the rows from the database table A where they do/do not exist in the temporary table.

 

Thanks

 

David

Karuetl
Creator II
Creator II
Author

There are multiple files with different schema among each and those has ID 

 

I want to each file check with those ID from the table and then filter out 

 

 

Ganshyam
Creator II
Creator II

Hello,

Try performing  joins on table and input file.

Apply filter on second tmap and filter the values that have null values.  out1.ID_1 == null 

0683p000009M1H7.png

 

Regards

Ganshyam Patel

Anonymous
Not applicable

@Karuetl @Ganshyam

 

You can do it in single tmap as shown below (you can remove tLogrow since it has been added for testing) 

0683p000009M1LX.png

 

 

The output is as shown below.

0683p000009M1BT.png

 

 

The trick lies in using the inner join and catching the rejected inner join records from the tMap.

0683p000009M1Lc.png

 

 

If the answer has helped you, could you please mark the topic s resolved? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi

Karuetl
Creator II
Creator II
Author

What is the join condition logic 

Karuetl
Creator II
Creator II
Author

You have declared the column name and you know the position , in my case I dont know the position and i read the file entire row as string
Ganshyam
Creator II
Creator II

Hello,

 

You can use tfileinputfullrow component to read entire row as a string and then split into 3 field using textractdelimited component and further you can continue with joins.

 

 

 

Karuetl
Creator II
Creator II
Author

As i mentioned its dynamic columns , it is not fixed like 3 columns or so 

one file can have 10 columns other file can have 6 columns

Ganshyam
Creator II
Creator II

Hello,

 

Not sure , but you can try using tjavarow and some java code to handle the dynamic input column.

 

Regards

Ganshyam Patel