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.

Condition Statement

jonick1205
7 - Meteor

Anyone can help me to create a condition statement for the dates for example 01-01-21 to 01-31-21 my given date is 01/15/21 i only need to show  the less than 10 days and more that 10 days from 01/15/21.

 

 

4 REPLIES 4
AngelosPachis
16 - Nebula

Hey @jonick1205 ,

 

You can try the following expression :

 

 

Date>=DateTimeAdd(
                     Datetimeparse([Your_given_date_here],"%m/%d/%y")
                    ,10,"days")

OR 

Date<=DateTimeAdd(
                     Datetimeparse([Your_given_date_here],"%m/%d/%y")
                    ,-10,"days")

 

 

Jonny
11 - Bolide

Hi @jonick1205,

 

one idea for the IF statement would be:

 

ABS(DateTimeDiff([DateTime_Out],'2021-01-15','days'))

 

Jonny_1-1623438503256.png

Jonny_2-1623438640558.png

 

I've built an app from what I think I understand from your use case, hope it helps!

 

cheers!

 

jonick1205
7 - Meteor

hello thank you for the enter given date how can i enter my prefer date?

Jonny
11 - Bolide

Run as an analytical app

Labels
Top Solution Authors