We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

New column depending on the row condition

ferha_jafri
8 - Asteroid

Hello Experts,

 

I have a requirement in which I have a category and sub category for which I want to create Other Column depending on the Values, i.e if Values are equal and opposite for same Category what ever may be the sub category the Other will have Value else 0 or blank. PFA with the input data sample and the desired output.

 

Thanks in advance

 

3 REPLIES 3
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @ferha_jafri ,

 

Could you provide the output you need for your sample ? I'm not sure to get the logic here.

atcodedog05
22 - Nova
22 - Nova

Hi @ferha_jafri 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1627025960000.png

 

1. Using record id to set as unique id.

2. Using formula tool to get opposite value.

3. Using join tool to join on category, actual value and opposite value numbers.

4. Using find and replace tool to do vlookup using recordid to add other column.

 

Hope this helps : )

 

ferha_jafri
8 - Asteroid

Thanks it worked.

Labels
Top Solution Authors