Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to change values in cell based on other cell value

rshetty
5 - Atom

Hi All,

 

I am new so not sure how this works but just trying my luck.

 

Need help with the below.

Product IDSub IDStatusStatusA
123  Pass
 123fail 
 123Pass 
 123TBD 
 123medium 

 

I want to update the 'StatusA'  column based on the 'Status"  column value, Status A is already updated but needs to be updated based on column 'Status'. In this case I want the column ' StatusA' updated as " fail ".  If there is no " fail" then Status A should pick "TBD". So the ranking is 1. Fail 2. TBD 3. Pass 4. Medium. I have multiple Product Ids where 'StatusA' should reflect SubID Status based on the ranking.

 

Thank you

Rishi 

2 REPLIES 2
danilang
19 - Altair
19 - Altair

Hi @rshetty 

 

Here's one way to do it

 

danilang_0-1619781630903.png

The workflow concatenates the Status values for the Sub Id rows and then calculates the new status with an if-then-else based on your ranking order.  This new status is joined with ProductID rows and unioned with SubID rows and sorted to give you

 

danilang_1-1619781846341.png

Dan

 

 

rshetty
5 - Atom

Thanks, Dan for your swift response. My issue is resolved. God bless.

 

Labels
Top Solution Authors