Alteryx Designer Desktop Discussions

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

Duplicates marking and removing and marking their previous appearance in an extra column

dianastate
6 - Meteoroid

Hi!

 

I am trying to create a bigger workflow which contains data about: SKU, Season, Ranking of the season and a new column which is called " Carryover".

 

In short, the file sometimes contains duplicates of the SKUs number, but that SKU has different season: e.g. SKU: 110 can be found in both FALL, SUMMER and SPRING. 

The seasons are also ranked by their relevance: 1- most recent to 4- oldest.

 

I need a workflow which:

1. For the duplicates, in the Carryover column is taking the names of all the other season where is present:

e.g.: SKU 110, Season: FALL, Carryover: SUMMER, SPRING

         SKU 110, Season: FALL, Carryover: SUMMER, SPRING

2. In the case that specific SKU is present in multiple seasons, I only want to keep the most recent one.

Example:

INPUT:

SKUSEASONRANK
110FALL1
110SUMMER2
110SPRING3
111FALL1
112SPRING3

 

OUTPUT

SKUSEASONRANKCARRYOVER
110FALL1SUMMER,SPRING
111FALL1 
112SPRING3 

 

Note:

1. As seen above, the SKUs which only appear once, do not need to be removed. 

 

Thank you in advance!

 

 

1 REPLY 1
FrederikE
13 - Pulsar

Hey @dianastate,

 

This should do: 

FrederikE_0-1686055653706.pngFrederikE_1-1686055654997.png

 

Labels