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

Data Manipulation

EvansM
9 - Comet

Hello everybody,

 

Please refer to the attached documents

 

Document LOCTYPE is a data sample 

EvansM_0-1635273776644.png

 

 

Document EXPETED RESULT LOCTYPE is how the data should look like when is done 

EvansM_0-1635278756666.png

 

 

 

Thanks  

5 REPLIES 5
chuckleswk
11 - Bolide

What is it you're trying to accomplish here. I can see the example dataset and the expected output....but what rules are you trying to apply? If there's multiple of the "Name" then the consecutive ones "LOCTYPE_ID" change to a 2? Some more information would be helpful to see what it is that you're trying to do.

chuckleswk
11 - Bolide

The attached workflow produces your expected results using a multi-row formula of: if [Row-1:NAME] = [NAME] then 2 else 1 endif

Capture.PNG

EvansM
9 - Comet

@chuckleswk Please refer "LOCTYPE_ID on the document 2

chuckleswk
11 - Bolide

@EvansM Please see the above solution this produces the expected output.

EvansM
9 - Comet

@chuckleswk  Thanks a lot 

Labels
Top Solution Authors