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
20 - Arcturus
20 - Arcturus

@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