Alteryx Designer Desktop Discussions

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

Complicated Counting of Records

Callumlam
5 - Atom

So I have a data set that kind of looks like this:

 

Week CommencingIDQuantity Sold
2019-06-29100011
2019-06-29100011
2019-06-29100021
2019-07-06100012
2019-07-06100033
2019-07-06100043
2019-07-13100012
2019-07-13100021

 

I'm trying to create the following table:

IDWeeks on PromotionTotal quantity sold range
1000136
1000222
1000313
1000413

 

I've been trying to use the Summarize tool to calculate/count the number of weeks on promotion for each ID.

 

Could I please get some assistance, I'm new to Alteryx.

 

Thanks!

4 REPLIES 4
DavidP
17 - Castor
17 - Castor

You can do it with groupby and sum in the Summarize tool

 

DavidP_0-1594828806563.png

 

bpatel
Alteryx
Alteryx

hi @Callumlam ,

 

in your summarize, use count distinct to get your weeks on promotion. i hope this helps!

 

bpatel_0-1594828920935.png

 

DavidP
17 - Castor
17 - Castor

Sorry, and count distinct

 

DavidP_0-1594828950504.png

 

Callumlam
5 - Atom

Hi David, I'm trying to count the number weeks in which sales happened for a given ID. The summing of quantity is not the issue.

Labels