Alteryx Designer Desktop Discussions

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

Remove the line based on the codition

Sshasnk
8 - Asteroid

So I have dataset and I below are the rules

 

1. If I have A and B in the same account excluding all the B's and keep all the A's

2. If only A is there keep all of them

3. If only B is there keep all of them.

 

Note: There could be N number of B's and A's in the same account.

 

Input: 

 

Accountvalue
123A
123B
123A
124A
124A
125B
125B
121B
123B

 

In the above example for account 123 we have 2 B but it could be 3,4 or 5 and the solution should be dynamic to remove all the B's

For account 124 we don't have to remove as rule 2 say

and same goes for 125 and 121 according to rule number 2&3

 

Output

 

Accountvalue
123A
123A
124A
124A
125B
125B
121B
2 REPLIES 2
RobertOdera
13 - Pulsar

Hi, @Sshasnk 

 

Try this revised approach.

Using Tile to keep it as dynamic as possible (hard to tell without a scaled sample)

I hope you find it helpful - cheers!

 

RobertOdera_0-1681585157493.png

 

FrederikE
13 - Pulsar

Hey @Sshasnk,

 

FrederikE_0-1681585402275.png

 

Labels