The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

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

ajanayak
Asteroide

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 RESPOSTAS 14
FinnCharlton
Pulsar

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

FinnCharlton_0-1674053672743.png

 

ShankerV
Castor

Hi @ajanayak 

 

Please find the expected output.

 

ShankerV_0-1674053984347.png

 

Many thanks

Shanker V

 

binu_acs
Polaris

@ajanayak One way of doing this

 

binuacs_0-1674054037199.png

 

Emmanuel_G
Pulsar

@ajanayak 

 

Find in attachement the way of doing that.

 

Let me know if it works as well.

 

Emmanuel_G_0-1674054051464.png

 

ShankerV
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
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
15 - Aurora
15 - Aurora

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

All the best,
BS

LinkedIN

Bulien
ajanayak
Asteroide

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
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.

Rótulos
Autores com maior número de soluções