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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filter row by comparing two columns

Hi All,
I have an issue in which i need to filter rows that figure from columns A must be greater or equal to column B. If not, i don't want it. See example below:
Input
------
column A column B
---------- ----------
1A 1B
1A 2B
1A 3B
2A 1B
2A 2B
2A 3B
Expected Output
-----------------
1A ............. 1B
1A ............. 2B
1A ............. 3B
2A ............. 2B
2A ............. 3B
Plz help me 0683p000009MPcz.png
Regards,
KAL
Labels (2)
5 Replies
Anonymous
Not applicable
Author

Hi,
This forum https://community.talend.com/t5/Design-and-Development/resolved-Sequence-Generation/td-p/100565 might point a light to you.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,
Thanks for your response. I already used other way to solved it but the solution that you advised me to refer is good. It is helpful for my etl job enhancement 0683p000009MACn.png
Thanks again
Kal.
Anonymous
Not applicable
Author

Hi kal,
Thanks for your feedback. Would you mind sharing your solution with us?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,
Since i wants to filter a row based on condition where value in column A must greater or equal to column B, only then i read the rows (VALUE) or else i will not read it.
What I've done is (by using tMap) i add another columns C and inside the expression of column C, i put a condition as per below:
column A >= column B ? VALUE : null
Then i used tFilterRow to filter column C not equal to null.
0683p000009MACn.png
Regards,
Kal
Anonymous
Not applicable
Author

Hi,
Thanks for sharing your experience with us , it is a good solution.
Best regards
Sabrina