Alteryx Designer Desktop Discussions

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

Copy one row value to another row based on some condition (Based on some column value)

ajanayak
8 - Asteroid

Hello Team,

 

I need some urgent help as I got stuck in some issue, I have attached here the input file and also given the file output as well, Not sure how to get it done, Please help me and Thanks in advance.

 

One row data should be copied to another row based on some condition, In this exercise I have "SKU","Units" and "category", Based on that the data needs to be copied to "receive" Category from "PO" category, please help me. Let me know if you need more clarity on this requirement as well.

14 REPLIES 14
FinnCharlton
13 - Pulsar

Hi @ajanayak , here is one way to achieve your output:

FinnCharlton_0-1674053672743.png

 

ShankerV
17 - Castor

Hi @ajanayak 

 

Please find the expected output.

 

ShankerV_0-1674053984347.png

 

Many thanks

Shanker V

 

binuacs
20 - Arcturus

@ajanayak One way of doing this

 

binuacs_0-1674054037199.png

 

Emmanuel_G
13 - Pulsar

@ajanayak 

 

Find in attachement the way of doing that.

 

Let me know if it works as well.

 

Emmanuel_G_0-1674054051464.png

 

ShankerV
17 - Castor

Hi @ajanayak 

 

Step 1: Input

 

ShankerV_0-1674054219966.png

 

 

Step 2:

 

ShankerV_1-1674054242509.png

Step 3:

ShankerV_2-1674054317820.png

 

ShankerV_3-1674054331461.png

ShankerV_4-1674054353629.png

 

ShankerV_5-1674054369785.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @ajanayak 

 

Step 4: Sort tool

 

ShankerV_2-1674054441980.png

 

ShankerV_1-1674054433248.png

 

Step 5: 

ShankerV_3-1674054463586.png

 

IF [Category]="Receive"
THEN [Row-1:Value]
ELSE [Value]
ENDIF

 

ShankerV_4-1674054481206.png

 

Step 6:

 

ShankerV_7-1674054540491.png

 


IF [Category]="Receive" AND [Value]=0
THEN Null()
ELSE [Value]
ENDIF

 

ShankerV_6-1674054526650.png

 

Step 7:

 

ShankerV_9-1674054593001.png

ShankerV_10-1674054608420.png

 

Expected output post run

ShankerV_11-1674054643310.png

 

Many thanks

Shanker V

 

 

 

 

 

 

 

BS_THE_ANALYST
14 - Magnetar

Hi! I think I might have done it? Can you have a check if it's doing what you want. Try attached workflow

ajanayak
8 - Asteroid

Thanks Finn,

 

But I don't see the solution when I configure the way you have suggested, I have attached the workflow, Input and Output file, Please let me know where exactly I am doing wrong. 

 

Many thanks for your prompt response.

FinnCharlton
13 - Pulsar

Hi @ajanayak , please check the configuration of the transpose tool, you need to set your "Category" field as a key column:

FinnCharlton_0-1674056104391.png

 

You will also need to group by this field in the CrossTab tool.

Labels