Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Create number ranges

tanvir_khan
8 - Asteroid

Hi all,

 

I've range of numbers like below in my dataset:

 

Input
4543443591||4543443591
6655427400||6655427410
7444748637||7444748638

 

And I need to create sequences as below from above dataset. Can anyone help me to build the logic in Alteryx? Thanks in advance.

 

Output
4543443591
6655427400
6655427401
6655427402
6655427403
6655427404
6655427405
6655427406
6655427407
6655427408
6655427409
6655427410
7444748637
7444748638

 

Thanks

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@tanvir_khan 
You can try with the Text to Column and Generate Rows tools.

Dhrish
8 - Asteroid

@tanvir_khan you can utilize the generate rows tool and regex tool. Refer the attached workflow.

Pilsner
12 - Quasar

Hello @tanvir_khan 

There are several ways you could do this, but I agree with Qui and Dhrish that the easiest is probably with the Text to columns and generate rows.

The main trick is to use generate rows to:
1) Start at the number on the left of the |
2) Loop through, adding one each time
3) Stop when it reaches the number on the right of the |

Screenshot 2025-05-27 094727.png


I have attached my workflow below. Please let me know if you want me to explain anything further.

Regards - Pilsner

tanvir_khan
8 - Asteroid

Thank you all!

Labels
Top Solution Authors