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.
SOLVED

Days Aging Inquiry

verde0903
8 - Asteroid

Hello,

 

I have searched in the community for a solution but not finding the solution.  Am trying to find a formula that says that if today's date is September 10, 2024 and the invoice date is September 1, 2024, the invoice is aging x number of days.  In short, need assistance with a formula that returns the days variance between today's date and a set date.

 

Thanks,

Maylen

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @verde0903, you'll want to use the DateTimeDiff() function in conjuction with DateTimeToday(), using 'day' as the measurement.

 

DateTimeDiff(DateTimeToday(),[SetDate],'day')

 

Just replace [SetDate] in the expression above with your own field/set date. If you're hardcoding, just use a date in ISO format (YYYY-MM-DD) wrapped in quotes i.e. '2024-09-01'.

verde0903
8 - Asteroid

Thank you DataNath, that worked perfectly.  Exactly what I needed.

Labels
Top Solution Authors