Alteryx Designer Desktop Discussions

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

Count occurences of two columns (Different dates per ID)

cycyg
7 - Meteor

Hello Alteryx Community!!
Would appreciate it if somebody can help me out with the below problem that I am trying to do.
I have an ID and Date field, and want to count the number of occurrences of different dates per ID as mentioned below.

Screen Shot 2021-05-06 at 7.36.49 PM.png

Much appreciated for any help

5 REPLIES 5
apathetichell
18 - Pollux

summarize tool:

group by date

Count date

 

will give you the overall count

 

multi-row formula will give you each row's count. I'll post a mock up in a second.

mceleavey
17 - Castor
17 - Castor

Hi @cycyg ,

 

Just a little summarise and multi-row magic:

 

mceleavey_0-1620316331467.png

Workflow attached.

 

I hope this helps.

 

M.

 

 



Bulien

cycyg
7 - Meteor

Hi mceleavey,
Thanks for prompt response!!
This solution counts occurrences of the date not taking into account the ID correct?
In my case, I want when ID changes, the count starts from 0 again. 
Below is my output from your solution.

Screen Shot 2021-05-07 at 11.48.57 AM.png

 

RaviP
8 - Asteroid

Hi @cycyg 

 

Made slight tweak to @mceleavey solution. Hope this helps

 

RaviP_0-1620376991425.png

 

mceleavey
17 - Castor
17 - Castor

Hi @cycyg ,

 

Ah, you just need to check the ID grouping field on the multi-row formula for that.

I've applied the change.

 

M.



Bulien

Labels