In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to use interface date to formula

shijieleong
7 - Meteor

Hi all, 

 

how can i connect my date selection to the formula so that i dont have to manually key in the date to the formula? based on following formula , the variable is the  "2022-2-28 " i will need to manually update. Attached my workflow. 

 

IIF([start_date]> "2022-02-28", 1,
DateTimeDiff("2022-02-28",[start_date],"month")+1)

 

 

thanks. 

5 REPLIES 5
binuacs
21 - Polaris

@shijieleong 

IIF([start_date]> DateTimeLastOfMonth(), 1,
DateTimeDiff(DateTimeLastOfMonth(),[start_date],"month")+1)

binuacs_0-1645701608231.png

 

AngelosPachis
16 - Nebula

Hi @shijieleong 

 

Do you mean how you can use a Date interface tool in your workflow so you can have a calendar to select the date rather than manually typing the date each time?

 

 

AngelosPachis_0-1645701696550.png

 

Qiu
21 - Polaris
21 - Polaris

@shijieleong 
You mentioned interface, so meaning Analytic Apps?

0224-shijieleong.PNG

shijieleong
7 - Meteor

Yes, i want to select the date from the dates tools instead of typing the dates each time . 

Qiu
21 - Polaris
21 - Polaris

@shijieleong 
then the app of mine should work for you. 

Labels
Top Solution Authors