In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Sequential number output using dash

andrewplaice
8 - Asteroid

Hi all,

 

It's been a few months since I posted so I must be learning something!  I am, however, stumped on this.  I have table data that I concatenated to combine rows, but would like to make the concatenated data even more concise.  Rather than listing sequential data, I'd like to use a dash, when appropriate, but I am not sure the best way to approach this.  My data currently looks like the Delay Period data, but would like it to look like Revised Delay Period data.

 

Appreciate your help as always!

 

Delay PeriodRevised Delay Period
1, 21-2
5, 6, 7, 10, 11, 12, 15, 16, 17, 20, 21, 225-7, 10-12, 15-17, 20-22
5, 105, 10
6, 66, 126, 186, 2466, 66, 126, 186, 246
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 121-12
3 REPLIES 3
OllieClarke
16 - Nebula
16 - Nebula

@andrewplaice That was a fun challenge! Here's what I came up with:

OllieClarke_0-1602862694280.png

 

Greg_Murray
12 - Quasar

@andrewplaice 

 

here you go! 

Greg_Murray_0-1602862671636.png

 

andrewplaice
8 - Asteroid

That's awesome!  Thanks!

Labels
Top Solution Authors