Alteryx Designer Desktop Discussions

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

Count and Sum of Group within a Group

jaimearanda
5 - Atom

Hi guys, 

 

I am relatively new to Alteryx and have been struggling with a problem for a while.

I am trying to figure out how to get the count and sum of unique ID's of a group within a group. 

I have attached an image of the input and desired output. I have tried using the Summary tool however, I keep only getting the count/sum of records from the first groupby when I need them counted for the second groupby.

 

Any help is greatly appreciated.

 

Best,


Jaime

2 REPLIES 2
DataNath
17 - Castor

Hey @jaimearanda you just need to add a second 'Group By' in your Summarize tool, so your configuration should be:

 

Card Number > Group By

Store Number > Group By

Subtotal > Count

Subtotal > Sum

 

DataNath_1-1656603311477.png

 

jaimearanda
5 - Atom

Thank you so much! I see my mistake was using count distinct rather than count.

Labels