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

How to get original date from days past

Madzy
7 - Meteor

Example:

 

Today is August 28 2023 and something been on hold for 54 days we want to get the original date from that past 54 days

 

08/28/2023 - 54 DAYS = 07/05/2023 (I want this answer)

 

If someone knows how that would be great!

4 REPLIES 4
jordanmount6
8 - Asteroid

Hi there. Try this formula datetimeadd([Field1],-54,'days'). Field1 is whatever field the date it coming from. 

PhilipMannering
16 - Nebula
16 - Nebula

I don't know what you have in your data... but something like this should work,

DateTimeFormat(DateTimeAdd(DateTimeToday(), -[Days on Hold], 'days'), '%m/%d/%Y')
Madzy
7 - Meteor

Sorry I was specific the days varies the 54 was just an example.

jordanmount6
8 - Asteroid

You can add a text box to an action tool to the formula tool and when you run it as an analytically app you can put in the days that you want to subtract or add

Labels
Top Solution Authors