Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Calculate Age without weekends

griseldagomes
8 - Asteroid

Hello Experts,

I am looking to calculate the age for a set of data where I have the record date which needs to be deducted from current date to get the age, post excluding weekends (Saturday and Sunday).

Assuming today is 25th Mar, below is the expected age for the mentioned dates.
How can I achieve this please?

 

Record DateAge
18-03-20245
19-03-20244
20-03-20243
21-03-20242
22-03-20241
2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @griseldagomes you can use the generate row tool to generate all the dates from your data and today date and then filter out Saturday and Sunday then aggregate the data. I have came up with an approach which showcase this. 

 

Dates_24032024.png

griseldagomes
8 - Asteroid

@JosephSerpis it worked. Thank You!

Labels
Top Solution Authors