Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
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