Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to eliminate rows which has same account and product id

Sshasnk
8 - Asteroid

Hi I have a dataset which has four types of product 

1. Apple 

2. Mango

3. strawberry

4 banana 

 

and every product has a different Product Id and account ID

 

Example:

Productaccount id product id
apple 145678123
strawberry4571564
mango145678123
apple4571564
banana145678123
strawberry145678123
apple45746852
mango47856419

 

Conditions: 

If you will see an apple, mango, and banana (AND condition) have the same account id and product id. I have to eliminate those where ever these three products have the same account id and product id I have to remove those rows.

Exception:

If you will see strawberry also have the same account id and product but we don't have to remove those 

 

Output:

 

Productaccount id product id
strawberry4571564
apple4571564
strawberry145678123
apple45746852
mango47856419
3 REPLIES 3
Sntrada
11 - Bolide

Hi Sshasnk, 

 

I am working on a solution but I need to clarify why apple is in the output in the second row. This record has a duplicate account ID and product ID as the strawberry record above it. 

 

On the converse, the duplicate apple record with account ID, product IDs below was not selected to output. 

 

145678123

 

 

Sshasnk
8 - Asteroid

Hi @Sntrada ,

 

When you remove, it should be a group of apple mango, and banana (Not strawberry) all of them should have the same account id and product id 

pedrodrfaria
13 - Pulsar

Hi @Sshasnk 

 

Please see attached below for the WF:

 

pedrodrfaria_0-1616415526431.png

 

 

 

Labels