Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Copy values in a column to each record

JDong
8 - Asteroid

Dear All,

 

I have the below table and need to achieve the last  'Sales USA' column

 

CountryCategorySub-CategorySalesSales USA
USAFurnitureBookcases261.96261.96
USAOffice SuppliesChairs731.94731.94
USATechnologyLabels14.6214.62
ChinaFurnitureBookcases1900261.96
ChinaOffice SuppliesChairs485731.94
ChinaTechnologyLabels35014.62
AustraliaFurnitureBookcases445261.96
AustraliaOffice SuppliesChairs725731.94
AustraliaTechnologyLabels120814.62

 

As we see here the last column is a copy of the USA data. So for every country in my dataset need to repeat and copy the USA data as a column. The category and Sub category columns are constant for all countries.

 

Do let me know in case of any questions.

 

Thanks

24 REPLIES 24
atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

How exactly is Sales USA is mapped.

JDong
8 - Asteroid

Thanks...based on the Country, Category and Sub category.

 

In my actual flow USA data is a separate source...

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606751058026.png

Workflow:

atcodedog05_1-1606751072293.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

JDong
8 - Asteroid

Sorry maybe my question was not clear.

 

I need to derive the last column 'Sales USA'. The Sales column is part of my dataset. As we see the last column is a copy paste of only USA values but for all countries.

 

Thanks

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Sorry the column was deselected 😅 I have done the same.

Output:

atcodedog05_0-1606751432870.png

 

JDong
8 - Asteroid

haha...my bad thanks and this helps !

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @JDong 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

JDong
8 - Asteroid

Hi @atcodedog05 

 

An extension to the above question

 

CountryCategorySub-CategorySalesSales USA
USAFurnitureBookcases261.96261.96
ChinaFurnitureBookcases1900261.96
AustraliaFurnitureBookcases445261.96
USAOffice SuppliesChairs731.94731.94
ChinaOffice SuppliesChairs485731.94
AustraliaOffice SuppliesChairs725731.94
USATechnologyLabels14.6214.62
ChinaTechnologyLabels35014.62
AustraliaTechnologyLabels120814.62
KoreaFurnitureBookcases  
KoreaOffice SuppliesChairs  
KoreaTechnologyLabels  
GermanyFurnitureBookcases  
GermanyOffice SuppliesChairs  
GermanyTechnologyLabels  
PolandFurnitureBookcases  
PolandOffice SuppliesChairs  
PolandTechnologyLabels  



If I introduce new countries later in the flow...how can I copy the same values for other countries ?

Is there an easy way to do this ?

 

Thanks

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

The above workflow should even if you add new countries.

Labels
Top Solution Authors