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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
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