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: 
dwhdeveloper
Contributor
Contributor

use if else to choose between to data flows

I want to chose between two data flows depending on how many inputs i get.

Is there a way I can run the same sub component for two different data flows and only one of them runs based on if/else?

I know how to run two different sub jobs based on if/else.

Just want to run the same sub components based on input chosen.

 

Labels (1)
2 Replies
Anonymous
Not applicable

I suggest, you first count the number of records in your input

then you you use the connector if

I hope this will help
Anonymous
Not applicable

Hi,

 

   If you can assign each input a specific value (say 1 for input A, 2 for input B etc.) then you can do the filtering and redirection of data using tMap itself. You have to add the output expression filter to specify the flow which need to go to output.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂