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

Making multiple rows from specific value

serendipitytech
8 - Asteroid

Hello everyone, 

 

So - I'm not entirely sure how to ask this with proper terminology - but here goes:

 

I have a dataset of about 75k records, each record has a value from the list (gathered from the summarize tool):

Screen Shot 2017-04-04 at 3.46.21 PM.png

 

What I need to generate is a tab delimited file that contains the ID from the count distinct list above, and one record per digit of the groups above. 

 

So, for example, all the 1532 items in the 11-12 group, the final file would need to have two entries for each ID with the corresponding new value, one for 11 and one for 12:

1234567        10005

1234567        10006

 

I have a list of values, but the list as one id for each value 00-12, and I need to end up with a list that as a one to one relation of item ID to value ID. 

 

I was thinking of trying to use the Formula tool and create a complicated IF, Then, ElseIf, etc. But I wasn't sure if that was the best way, or if that would even end up generating a 1:1 list. Like if I put in 

IF value = 11-12 THEN 10005 ELSEIF value = 11-12 THEN 1006 and so on?

10 REPLIES 10
serendipitytech
8 - Asteroid

That is a GREAT example of the tools involved, seeing the thought process through the workflow makes so much sense. And this has the benefit of being more future proof, as I believe it will handle any and all instances, so if the next set has a 0-3, and this set doesn't, then it will scale that up. 

 

Since this is an ongoing task, I really can't thank you enough for providing such thorough help, and in the process I think I get a better understanding of some of the tools I haven't used yet. Month 4 with Alteryx, and it just keeps getting more useful!

 

Thanks again Alex!

 

Labels