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

Summarizing the data based on Group by and filtering out on certain condition

madhurinani
8 - Asteroid

madhurinani_1-1657891022988.png

 

Hello,

I am trying to aggregate the above data by Group and sum of Number column and it should exclude the ESOP row when summarizing.

 

Output should be:

A new column to be created, and on row #5, the value would be 18/(5+6) i.e 18/11

and on Row #9, it would be 6/3

 

I tried using the summarize column but unable to filter to exclude the ESOP row when summarizing

the below pic shows the o/p expected

madhurinani_2-1657891242980.png

 

 

3 REPLIES 3
LouisJ
8 - Asteroid

You cannot directly make what you want in only a summerize block, but you can easily enough create a workaround by creating a new column for which "ESOP" and "_total" column are 0's, so that the summerize sums correctly for each Group, and then handle the calculation in a formula tool.

LouisJ_0-1657892377416.png

Let me know if you needed anything more specific,

LJ

 

gabrielvilella
14 - Magnetar

Hi @madhurinani, let me know if this works for you.

gabrielvilella_0-1657892673621.png

 

madhurinani
8 - Asteroid

@gabrielvilella @LouisJ : Both of your solutions worked for me.

Thank you!

Labels