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

Loop through rows based on condition

Hi,

I have the following table with prices per customer and price category:

CustomerPricePrice Category
X0,5A
X0,7B
Y0,5A
Z0,7B

 

My goal is to keep the rows for each customer of price B, in case they exist, otherwise, keep price A.  So price B prevails over price A. The desired result would then be to have the same table but without the first row:

CustomerPricePrice Category
X0,7B
Y0,5A
Z0,7B

 

Any suggestion on how to do so in the data editor?

Thanks in advance

0 Replies