Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Count days records per year

abdoul
7 - Meteor

Hello, 

I'm trying to display for each STATUS the number of days per YEAR in my dataset. 

My dataset has EMPLOYEES Category, STATUS and 2 DATES as us can see in the picture. 

I can calculate the number of days between the starting and the ending dates but I don't know how to display the number of days per year from 2011 to 2019 for each status.

Any help please :)

4 REPLIES 4
MarqueeCrew
20 - Arcturus
20 - Arcturus

@abdoul,

 

I solved your challenge by materializing each day in the starting to ending date range.  Then I extract the year and now I'm able to use the summarize tool to generate the status, year counts.

 

Capture.PNGcapture.jpg

 

I hope that this helps you and demonstrates a technique that you and others can learn from.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Thableaus
17 - Castor
17 - Castor

Hi @abdoul

 

Here's the solution that I thought.

 

Cheers,

abdoul
7 - Meteor

That's exactly what I was looking for. Thanks @MarqueeCrew :)

abdoul
7 - Meteor

Your solution is also correct and shorter. Thanks @Thableaus

Labels