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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Adding 30 days to a date

guigui17
7 - Meteor

Dear all ,

 

I am trying to add 30 days to a date in order to create a "If statement" in a Formula. 

 

Here below is the formula that I wrote that is clearly not in correct - if you could help me with that , this would be greatly appreciated.

 

If statement formula.PNG

 

thanks a lot in advance,

Guillaume 

 

 

3 REPLIES 3
Kenda
16 - Nebula
16 - Nebula

Hi there @guigui17 

 

It looks like you're close! In the first part of your if statement, however, you do not need the 

[Capture date] +

 

Instead, replace the "dt" in your DateTimeAdd expression with this field name.

 

 

Hope this helps! 

Qiu
21 - Polaris
21 - Polaris

@guigui17 

There is an error in the DateTimeAdd formula I think.

Capture1.PNG

jferrone
8 - Asteroid

I believe this is the formula you need

 

IF DateTimeAdd([Capture date], 30, 'days') < [Payment date]
THEN 'Paid within Service Agreement'
ELSE 'Not with Service Agreement'
ENDIF

Labels
Top Solution Authors