Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Combine Data

JingYih_Herbalife
8 - Asteroid

Hi,

 

I have data such as below where each country has a different quantity for different quantities. 

 

JingYih_Herbalife_0-1638757100863.png

 

I would like to transform the data into as per below. 

JingYih_Herbalife_1-1638757125824.png

Can anyone please guide on what is the best way possible to achieve this?

 

Thanks in advance. 

 

 

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@JingYih_Herbalife 
I suppose your input is three sets of data.

1206-JingYih_Herbalife.PNG

JingYih_Herbalife
8 - Asteroid

Hi @Qiu ,

 

Thanks for the solution above. Is there a solution if the input is all in one data set?

 

Qiu
21 - Polaris
21 - Polaris

@JingYih_Herbalife 
I tried to be dynamic and do hope there is better solution.

1206-JingYih_Herbalife-1.PNG

JingYih_Herbalife
8 - Asteroid

Hi @QI 

 

This worked great.

 

Thank you very much 🙂

Labels
Top Solution Authors