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

How to extract the value in the column+1 based on the value of the column+0

WilsonZ
5 - Atom

Hi all,

 

I am working on using the value of column+0 to find the data in column+1. (Modify the input format to required format)

 

input format:

WilsonZ_0-1686646965606.png

 

required format:

WilsonZ_1-1686647040975.png

 

Can you help me with it.

 

Wilson

4 REPLIES 4
jdminton
13 - Pulsar

Ok, the attached can likely be shortened as I was solving throughout the process, but it does meet your criteria based on the data and should work with additional information. I'm guessing this is coming in as a text file and there might be an easier way starting with the original file, but see attached. Let me know if this works.

michaelbono16
7 - Meteor

Hi Wilson, I've attached my solution below. It's very similar to @ jdminton's solution, but I was able to condense much of the logic into one multi-row function. Another note: if you run the workflow with AMP Engine disabled or in Engine Compatibility Mode (accessible from the workflow configuration - runtime settings), the Crosstab tool at the end will automatically sort your data by the RecordID to get it in the correct order. AMP Engine changes the order, but is easily fixable with a sort tool if needed. Hope this helps!

jdminton
13 - Pulsar

Thanks @michaelbono16, next time I'll need to go back after another cup of coffee 😂

WilsonZ
5 - Atom

Thank you both @jdminton and @michaelbono16. The flows perfectly solve my problem.

 

Labels
Top Solution Authors