community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Designer Ideas

Share your Designer product ideas - we're listening!

Add interval Types to the DATETIMEDIFF function

I have reviewed a number of batch macros that work well for mirroring the "NetworkingDays" excel calculation but it would be great to add an interval type for "weekdays" to the DateTimeDiff formula ie

 

 DateTimeDiff ( [Date01],[Date02], "WorkDays")  where any Saturday or Sunday between the dates would be discounted.

4 Comments
Alteryx Alumni (Retired)

Thanks for the request.  This would be a good addition to the DateTimeDiff formula.  We will consider it for a future release.

 

Best Regards,

Ben

Alteryx Alumni (Retired)
Status changed to: Under Review
 
Nebula
Nebula

The dateTimeDiff function is another that uses different codes for parameters than other date functions or capabilities.

 

I've created a suggestion to refactor the way that DateTime handling works, to make this consistent, more capable and user-friendly.    https://community.alteryx.com/t5/Alteryx-Product-Ideas/Refactor-Date-time-treatment/idi-p/46420

 

If we add the DateTimeFormat; DateTimeDiff and other date-time functions to this - and create a formula builder that allows you to build formulas quickly without having to know the magic codes - it takes yet another barrier out of peoples's lives and makes the tool much more approachable.

Meteoroid

It would also be good to have "weeks" as an interval type, as well as an option for fractional results, e.g. 1.5 years, 0.3 months, etc.