In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

Alteryx Designer Desktop Discussions

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

How To Group By Specific Values In A Column

FabianAvina
7 - Meteor

Hello All,

 

I am trying to group the values in Column E by a specific value in Column K. Basically, I need to group them as follows:

Class = GW stays in it's own row

Class = LC + Class = TL needs to be added together and be a row

All other classes needed to be added together and be in a row

 

I also have fields where there is no class at all and those just need to be ignored. I've attached a sample of the data for reference. I appreciate your help on this.

7 REPLIES 7
ShankerV
17 - Castor

Hi @FabianAvina 

 

Can you please paste the sample output expected from the input shared.

Will be useful to understand and proceed in a better way.

Thanks in advance.

PanPP
Alteryx Alumni (Retired)

Hi @FabianAvina 

 

I have uploaded a sample WF that sums all the values based on the associated classes.

 

Hope this helps. If it does, please like the post and mark it as a solution.

 

 

FabianAvina
7 - Meteor

FabianAvina_0-1670969617138.png

Like this

PanPP
Alteryx Alumni (Retired)

Hi @FabianAvina 

 

I have updated the sample WF to contain grouping by time periods.

 

If you want to group by more columns, simply add them to the Summarize tool and move the order above the sum of the values.

 

Hope this helps. If it does, please like the post and mark it as a solution.

ShankerV
17 - Castor

Hi @FabianAvina 

 

Please find the expected output.

 

ShankerV_0-1670970510881.png

 

Also I believe you need projected value for each different year.

 

Many thanks

Shanker V

binuacs
21 - Polaris

@FabianAvina One way of doing this

 

binuacs_0-1670970862577.png

 

ShankerV
17 - Castor

Hi @FabianAvina 

 

I have tweaked one tool to get the desired output for Projected years 2023, 24 and so on.

 

ShankerV_0-1670970936424.png

 

ShankerV_0-1670971048980.png

 

 

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

Labels
Top Solution Authors