Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Suggestions on how to append a "count number" automatically?

Cathy_L
7 - Meteor

Use case: I needed to append a count number to systematically generated rows after bursting/producing multiple lines from one row.

 

To provide more context, here is an example of the requirement:

I have a list of shows and I need to break out the list of shows to a lower level of detail, i.e. by episodes. However, from the original text, I need to add Episode count at the end of each show name.

 

INPUT DATA:

Show Name                                 # of Episodes

Stranger Things: Season 1           8

Stranger Things: Season 2           9

 

OUTPUT DATA:

Show Name

Stranger Things: Season 1, Episode 1

Stranger Things: Season 1, Episode 2

Stranger Things: Season 1, Episode 3

Stranger Things: Season 1, Episode 4

Stranger Things: Season 1, Episode 5

Stranger Things: Season 1, Episode 6

Stranger Things: Season 1, Episode 7

Stranger Things: Season 1, Episode 8

Stranger Things: Season 2, Episode 1

Stranger Things: Season 2, Episode 2

Stranger Things: Season 2, Episode 3

Stranger Things: Season 2, Episode 4

Stranger Things: Season 2, Episode 5

Stranger Things: Season 2, Episode 6

Stranger Things: Season 2, Episode 7

Stranger Things: Season 2, Episode 8

Stranger Things: Season 2, Episode 9

 

I previously asked for advice/help on how to "burst" each row from my input data into lower level of detail by using a variable, in my example above, the episode count, and was helped here: 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/How-to-burst-produce-multiple-lines-of...

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@Cathy_L 
We can use the Generate Rows tool to first generate the required rows based "# of Episodes" then use Formula tool to do the string manipulation.

0413-Cathy_L.PNG

Cathy_L
7 - Meteor

This is awesome! Many, many thanks, Qiu!

Qiu
21 - Polaris
21 - Polaris

@Cathy_L 
Glad can be helpful. 😁

Labels