In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date Time Manipulation

DeanLascota
6 - Meteoroid

Hi everyone,

 

I am fairly new with the application. I am working on a report where I need to filter data which is dependent on dates. I need to get rows of data where the date is less than a specific amount of days from current date. I am using the formula tool and the DateTime functions but I keep getting no to failed results.

 

Thank you in advance!

3 REPLIES 3
binu_acs
21 - Polaris

@DeanLascota use the DateTimeAdd() and DateTimeToday() functions for your use case

binuacs_0-1684958012596.png

 

alisonpitt
11 - Bolide

@binu_acs 's method is how I would do it.

 

You should also make sure that you are working with the right data types for your dates. It's not uncommon for Alteryx to read in dates from an input tool as strings, which only work in the DateTime functions if they are in the standard ISO format. If the dates are formatted as strings, you can use the DateTime tool to convert them. Good luck! 

DeanLascota
6 - Meteoroid

Thank you for your help. I will update you as I progress. Appreciate you guys :)

Labels
Top Solution Authors