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

Get the difference between today's date and column date

RichardAlt
8 - Asteroid

Hi guys,

 

I know this is already asked question, I've follow and checked the older question but I'm getting null values.

 

This is inside the formula tool

RichardAlt_0-1588166351679.png

 

This is the column transaction date.

RichardAlt_1-1588166413592.png

 

And this is the formula to excel, 

=ROUNDUP((NOW())-L2,0)

 

The output in the excel is 73 but in alteryx the output is null.

Any idea guys? Thanks!

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @RichardAlt,

 

You'll want to use:

 

DateTimeDiff(DateTimeToday(),DateTimeParse([TransactionDate],'%m/%d/%Y'),"days")

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

RichardAlt
8 - Asteroid

It works! Thank you @Jonathan-Sherman , I added + 1 to the end of the formula because I'm getting 72 instead of 73. Anyway thank you again!

Labels
Top Solution Authors