We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to add Count to an excluded month

Carolyne
8 - Asteroid

In my example bellow I need help in demonstrating that a patient had a fill in January and should be included the February count:

 

In put

 

PatientMonth 
1Month_YearRefills
11/1/20182
13/1/20182
14/1/20181
15/1/20181
16/1/20181
17/1/20181
18/1/20181

 

Output: How to transform the data

PatientMonth   
1Month_YearRefillsMonth YearCount Value
11/1/20182Jan-181
1Null0Feb-181
13/1/20182Mar-181
14/1/20181Apr-181
15/1/20181May-181
16/1/20181Jun-181
17/1/20181Jul-181
18/1/20181Aug-181
2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@Carolyne See if the attached gets you pointed in the right direction. I'm using a summarize to get the min and max dates. Then I use generate rows to get all of the months in between. Then I join that list to the original dataset.

Capture.PNG

Carolyne
8 - Asteroid

Thanks!

Labels
Top Solution Authors