ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Using an If Statement with Dates

kayla_o
7 - Meteor

Hello - I am seeking assistance on my use case below: 

 

In my data set:

I have one column "REDEMPTION MONTH" which represents the month that a customer redeemed a prize. (customer can have multiple redemption months)
I have another column "SURVEY MONTH" which represents the month that a customer took the survey. 

I want to capture all redemption months 3 months prior to the survey month. 

(i.e., in the dataset, if the SURVEY MONTH = 06/2022, I would ideally like to create a formula to flag all of the REDMEPTION MONTH rows that are within 04/2022, 05/2022, and 06/2022.

 

thanks!

1 REPLY 1
binu_acs
21 - Polaris

@kayla_o One way of doing this is by converting the month fields into dates then apply the filter

binuacs_0-1682000979853.png

 

Labels
Top Solution Authors