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

Alteryx Designer Desktop Discussions

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

Generate Duplicate Value

GayatriPanigrahi
8 - Asteroid

I have two data set like below and there is no common field for join. I need to generate duplicate value and produce output like below.

Any suggestion will be helpful.

 

Name
A
B
C

 

TeamCount
12
21
33

 

Output :

NameCount
A1
A1
B2
C3
C3
C3
2 REPLIES 2
grossal
15 - Aurora
15 - Aurora

Hi @GayatriPanigrahi,

 

I think I got it!

 

grossal_0-1585491573575.png

 

What happens:

1) I join the Names based on the position

2) I generate the amount of columns based on your Count Column (with Generate Rows Tool)

3) Selecting the columns we want and renaming them

4) Fix the numbers with Multi-Row-Formula

 

Workflow attached. Let me know if this is what you are looking for.

 

Best

Alex

 

Edit: If the "Count" from your Example Output is just the team number, you can check the Team-Column in the Join tool and remove the Multi-Row-Formula, but I interpreted the Count as a different value and added a Multi-Row Formula to enumerate the Teams.

 

ponraj
13 - Pulsar

Sample workflow

 

Capture.PNG

Labels
Top Solution Authors