Alteryx Designer Desktop Discussions

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

Convert Row data into column and apply Boolean.

SakshiL
5 - Atom

Hi Team,

I am new to the Alteryx world. I am stuck with a problem , it would be really great if you can provide some pointers on this.

I need to create a work flow to get data in a particular format. Below is the requirement.

Check the column Product for each row.  If column code has the value then create new column for all products and if that column code has product P1 then Y if no Product in column then N.

 

Actual Data

 

CountryCityCodeProduct
AustraliaPerthA123P1
AustraliaPerthA123P2
AustraliaPerthA123P3
IndiaMumbaiB123P2
IndiaMumbaiB123P3
USNew YorkC123P1
USNew YorkC123P3


final data should like below.

 

country  CitycodeP1P2P3
AustraliaPerthA123YYY
IndiaMumbaiB123NYY
USNew YorkC123YNY
5 REPLIES 5
Bren_Spill
11 - Bolide

Hi @SakshiL - see solution attached

usmanbashir
11 - Bolide

@SakshiL -

 

I provided two options to generate your output. Hope this helps!

 

2024-04-02_09-33-37.png

binuacs
20 - Arcturus

@SakshiL Another method

image.png

SakshiL
5 - Atom

Thank you all!

Worked like a charm. 

Bren_Spill
11 - Bolide

@SakshiL - Great! Can you mark the answers as solutions? You can do all three!

Labels