Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Group Records based on Type/Category with Repetition in Category Column

SanthoshRajoo
5 - Atom

Hi All,

 

I am faced with a scenario where I have different Categories/Types and each Category starts at a particular No/ID and ends at a particular ID. I want to summarize the Categories with the Start ID and End ID. I tried the summarize tool but the issue is it summarizes the Category just once even though the Category is present at different intervals of IDs. 

 

The Sample Input and Output are below:

Sample Input

Category/TypeID
Cat11
Cat12
Cat13
Cat14
Cat15
Cat16
Cat17
Cat18
Cat19
Cat110
Cat211
Cat212
Cat213
Cat314
Cat315
Cat116
Cat117
Cat218
Cat219
Cat220
Cat521
Cat522

 

Sample Output needed:

Category/IDStartEnd
Cat1110
Cat21113
Cat31415
Cat11617
Cat21820
Cat52122

 

Thanks and regards,

Santhosh Rajoo

3 REPLIES 3
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @SanthoshRajoo ,

 

Here is a workflow doing what you need. Basically, it assign an ID to each category with a different ID if the category is present at a different interval.

JoaoLeiteV
10 - Fireball

Hey there @SanthoshRajoo,

 

I've set up an Example using a Formula to create the columns with some starter numbers, then two multi-row formulas to get the values and finally a Summarize to group data and get the Max ending value.

JoaoLeiteV_0-1626701000898.png

 

The only thing that happened was that the Sorting of Summarize changed things a bit, but the results should be the way you want.

 

Hope this helps!

 

LukeG
Alteryx Alumni (Retired)

Multi-row formula to create grouping for consecutive items

Summarize to get min and max

Sort to.... sort

Select to choose and rename fields

LukeG_0-1626702873245.png

Hope this helps!

Labels