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: 
sbxr
Contributor III
Contributor III

Filter rows based on more the two condition.

Hi,

 

i have a table where source id is one column having multiple sources like below, i want to have multiple outputs based on different ids

i want to create two flow where one output table/file will contain all the data with source-id(1,2,4) and other output table/file  will have (3)

Input               

source-id Name
4test
1hello
2first
2first
3three
1hello
4test
2first

 

Out1(1,2,4)                                                

source-id Name
1hello
2first
2first
1hello
4test
2first

                                       

           

Out_2(3)

source-id Name
3three

 

Regards

Labels (4)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@sbxr ,check the below way.

0683p000009M72B.png0683p000009M73P.png

View solution in original post

4 Replies
TRF
Champion II
Champion II

Use tFilterRow (or tMap with according expression on output filter if you have something to transform)
sbxr
Contributor III
Contributor III
Author

Yes thank you , but how to implement above in tmap filter
what and how the condition i need to write.
manodwhb
Champion II
Champion II

@sbxr ,check the below way.

0683p000009M72B.png0683p000009M73P.png

TRF
Champion II
Champion II

Here is an example:

0683p000009M7BK.png

Define 2 output flows into the tMap.

For the 1rst one, define an expression filter as "row5.sourceId != 3" (for example). 

For the 2nd one, just set the Catch output reject option to true.