Alteryx Designer Desktop Discussions

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

Comparision of two tables

praneshsapmm
8 - Asteroid

Hello ,

 

I have this requirement to write a formula : 

 

4 columns A , B , C  and D are a part of workflow . 

 

A = Sales Area

B = Jurisdiction 

C = email id of Sales Person 

D = copy of column c 

 

ABCD
SalesArea1SalesArea1aac@gmail.comaac@gmail.com
SalesArea2SalesArea5bbx@gmail.combbx@gmail.com
SalesArea3SalesArea3ccx@gmail.com ccx@gmail.com 
SalesArea5SalesArea5xsx@gmail.comxsx@gmail.com

 

 

My requirement is if A !=B then column D must be updated with the corresponding email id available for B .

 

ABCD
SalesArea1SalesArea1aac@gmail.comaac@gmail.com
SalesArea2SalesArea5bbx@gmail.comxsx@gmail.com
SalesArea3SalesArea3ccx@gmail.com ccx@gmail.com 
SalesArea5SalesArea5xsx@gmail.comxsx@gmail.com

 

Thanks

4 REPLIES 4
Qiu
20 - Arcturus
20 - Arcturus

@praneshsapmm 
Sorry. attached the files again.


Hope I get you right.

0415-praneshsapmm.PNG

PKoya
8 - Asteroid

Hi,

 

Looks fairly straightforward.

 

PKoya_1-1618474561323.png

 

 

 

PKoya_0-1618474499462.png

Hope this is the output you are trying to achieve. This should help in that case.

 

Thanks,

PK

 

praneshsapmm
8 - Asteroid

@Qiu @PKoya  ,

 

Ideally it should be something like this but not working for me .

 

D = if [A]!= [B] then [B(D)] else [D] endif .

 

Thanks

Qiu
20 - Arcturus
20 - Arcturus

@praneshsapmm 
 I believe that is what I and @PKoya ar trying to do.

or you can provide a larger dataset to validate?

Labels