Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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
JDong
8 - Asteroid

Hi @atcodedog05 

 

One more question 😑

 

What if the sub category list is empty in some lines...in my actual data the sub category is empty for some countries and hence the join does not pull the records ?

 

Can you please help how to deal with the joins in such case.

 

So I am not yet getting the desired outcome in the flow.

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

As a analyst you and your stakeholders need to decide how to handles blank sub category.

 

One thing you can do is fill all the blanks with single sub category.

 

Or else let me know how you want handle the scenario. 

JDong
8 - Asteroid

ok so..on blank sub categories it just would join based on the category field.

 

This seems to be a fair assumption.

 

Please advise

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

The issue with that is each category has multiple sub category 

JDong
8 - Asteroid

Hi @atcodedog05 

 

So is there any other tool that will help here in Alteryx to copy the values over to other countries ? I guess the join approach may not be suitable since records drop in the filter

 

Thanks

Labels