The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Count days records per year

abdoul
メテオール

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件の返信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
メテオール

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

abdoul
メテオール

Your solution is also correct and shorter. Thanks @Thableaus

ラベル
トップのソリューション投稿者