Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMap multiple filtering conditions

My job contains a couple of inputs, tMap and a excel output. The input tables are Customers,Orders and OrderCateogry. The output columns are to be as follows
CustomerName|TotalOrders|OrdersforHDTV|OrdersforLaptop
How do I implement multiple filters within tMap or could you suggest a better way of accomplishing this.
Thanks
Labels (2)
6 Replies
Anonymous
Not applicable
Author

hi
How do I implement multiple filters within tMap or could you suggest a better way of accomplishing this.

What are you expected situation? You can add multiple filters on tMap like this:
row1.name.equals("shong")&&row1.id>3
or
row1.name.equals("shong")||row1.id>3
Best regards
Shong
Anonymous
Not applicable
Author

I would like 2 output columns filtered by different criteria on the same input column
One with
row1.name.equals("shong")
Other with
row1.name.equals("BI4better")
Anonymous
Not applicable
Author

Hi
Can you give us an exmaple? What are the incoming record and output result?
Best regards
Shong
Anonymous
Not applicable
Author

Let's say the input to tMap are Customers, Orders & OrderCategory.
OrderCategory would contain categories as Store and Online.
The output file needs to display the following
CustomerName| TotalNumberofOrders | NumberofStoreOrders | NumberofOnlineOrders
Thanks for your quick response
Anonymous
Not applicable
Author

Hi
Just do some inner join on tMap between the three input tables. Can you give us a specific example? I will show you a demo job
Best regards
Shong
Anonymous
Not applicable
Author

@shong

 

Can I give an example of mine and can yo give me a demo on how can I do it?