We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun 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