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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Conditional if formatting

Dharma_A
5 - Atom

I have 2 conditions:

Condition 1: month column contains Current month and previous month.

Condition 2: month column doesn't contain Either of the month.

 

Where, when condition 1 satisfies then condition 2 should not run and when condition 1 doesn't satisfy then condition 2 should work.

2 REPLIES 2
dwstada
11 - Bolide

@Dharma_A here's the formula for that:

 

if
DateTimeTrim([month column],"month") = DateTimeTrim(DateTimeToday(),"month") OR
DateTimeTrim([month column],"month") = DateTimeAdd(DateTimeTrim(DateTimeToday(),"month"),-1,"month")
then [condition 1]
else [condition 2]
endif

nbondarchuk
Alteryx
Alteryx

 

It works for me. Could you please clarify your concern? 

Screenshot 2023-10-17 at 16.51.27.png

Labels
Top Solution Authors