Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!

Alteryx Designer Desktop Discussions

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

Day Time difference removing holidays and weekends

Cherub7210
7 - Meteor

Good day,

 

I do have a data set of dates - created and close date. I would like to calculate the difference with these dates removing weekends and holidays 

 

Below is the sample Data 

 

Created DateClosed DateResolution Time
8/31/2023 21:239/6/2023 14:1365.85
8/31/2023 20:099/7/2023 14:5090.65
8/31/2023 19:359/5/2023 20:5449.3
9/3/2023 2:349/5/2023 14:3214.5
8/31/2023 23:229/5/2023 15:3740.25
9/1/2023 19:589/5/2023 13:1417.25
3 REPLIES 3
aliabedi
6 - Meteoroid

Hello Cherub7210,

 

Please refer to the article below; hopefully, it will prove helpful.

Solved: Calculate difference between two dates and exclude... - Alteryx Community

 

Cherub7210
7 - Meteor

Thank you for sharing. This solution only addresses the number of days between the two. For this scenario, i was hoping to get guidance to get it as hours difference between the two dates

Deano478
12 - Quasar

@Cherub7210 you can adapt that solution from the post then use a formula like so for the hours part:

DateTimeDiff([Closed Date], [Created Date], "hour")

Labels
Top Solution Authors