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

Pick first item of each row

BRRLL99
11 - Bolide

Hi Team,

 

In the available data I need to pick first child number based on first Pam

Available Data

old parentk_typeold childold quantityold typechildquantitytypechild2quantity2type2child3quantity3type3
SD0087MangosAB11970.1MangosAB00770.33MangosAS00551Pam   
SD0997MangosGF00970.24MangosTG67001PamWE99000.3MangosRE99880.66Pam
AG1799MangosJK89000.99MangosTG67005PamWE99000.55MangosRE99882Pam
SD3244MangosTG67000.44Pam         
FG9090MangosLG00110.88PamJK00991MangosQW99882Pam   
LL0099MangosTY00221PamXC00991Pam      
DD0066MangosGF0097 MangosDF0123 Pam      

 

Expected Output:

I'm looking for dynamic output Where I can input multiple rows and get expected output

 

 

old parentk_typeold childold quantityold typechildquantitytypechild2quantity2type2child3quantity3type3First Pam Child
SD0087MangosAB11970.1MangosAB00770.33MangosAS00551Pam   AS0055
SD0997MangosGF00970.24MangosTG67001PamWE99000.3MangosRE99880.66PamTG6700
AG1799MangosJK89000.99MangosTG67005PamWE99000.55MangosRE99882PamTG6700
SD3244MangosTG67000.44Pam         TG6700
FG9090MangosLG00110.88PamJK00991MangosQW99882Pam   LG0011
LL0099MangosTY00221PamXC00991Pam      TY0022
DD0066MangosGF0097 MangosDF0123 Pam      DF0123

 

7 REPLIES 7
ShankerV
17 - Castor

Hi @BRRLL99 

 

One way of doing this.

 

ShankerV_0-1682618012278.png

 

 

Many thanks

Shanker V

BRRLL99
11 - Bolide

Please share the workflow or Screenshots

ShankerV
17 - Castor

Hi @BRRLL99 

 

Step 1: Input

 

ShankerV_0-1682618076308.png

 

 

Step 2: 

 

ShankerV_1-1682618093541.png

 

Step 3: 

 

ShankerV_2-1682618109790.png

 

ShankerV_3-1682618119006.png

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @BRRLL99 

 

Step 4:

 

ShankerV_0-1682618150377.png

 

IF [Value]="Pam"
THEN [Row-2:Value]
ELSE ""
ENDIF

 

ShankerV_1-1682618162821.png

 

 

Step 5: 

ShankerV_2-1682618187303.png

 

ShankerV_3-1682618197144.png

 

Step 6:

 

ShankerV_4-1682618217477.png

 

ShankerV_5-1682618225618.png

 

 

Step 7:

 

ShankerV_6-1682618242246.png

 

ShankerV_7-1682618266664.png

 

Many thanks

Shanker V

 

 

 

 

 

BRRLL99
11 - Bolide

same update in the data 

as shown in the last row when 1st and 2nd are both mangos is it possible to show blanks?

 

old parentk_typeold childold quantityold typechildquantitytypechild2quantity2type2child3quantity3type3First Pam Child
SD0087MangosAB11970.1MangosAB00770.33MangosAS00551Pam   AS0055
SD0997MangosGF00970.24MangosTG67001PamWE99000.3MangosRE99880.66PamTG6700
AG1799MangosJK89000.99MangosTG67005PamWE99000.55MangosRE99882PamTG6700
SD3244MangosTG67000.44Pam         TG6700
FG9090MangosLG00110.88PamJK00991MangosQW99882Pam   LG0011
LL0099MangosTY00221PamXC00991Pam      TY0022
DD0066MangosGF00974MangosDF0123 Pam      DF0123
AW0099MangosFG00996Mangos         -
ShankerV
17 - Castor

Hi @BRRLL99 

 

Yes, its possible.

 

ShankerV_0-1682620426088.png

 

Added the below step.

 

ShankerV_1-1682620482849.png

 

ShankerV_2-1682620508975.png

 

 

Many thanks

Shanker V

BRRLL99
11 - Bolide

there is small update for the last row

Incase all values are mangos it should pick the last value in this case DF0123

 

old parentk_typeold childold quantityold typechildquantitytypechild2quantity2type2child3quantity3type3
SD0087MangosAB11970.1MangosAB00770.33MangosAS00551Pam   
SD0997MangosGF00970.24MangosTG67001PamWE99000.3MangosRE99880.66Pam
AG1799MangosJK89000.99MangosTG67005PamWE99000.55MangosRE99882Pam
SD3244MangosTG67000.44Pam         
FG9090MangosLG00110.88PamJK00991MangosQW99882Pam   
LL0099MangosTY00221PamXC00991Pam      
DD0066MangosGF00972MangosDF01232Mangos      
Labels
Top Solution Authors