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

Dates

suby
11 - Bolide

Hello All,

I'm trying to calculate the Date  logic but not getting expected result so I've mocked up a sample workflow with Input Data set and screen shot of expected results.

 

- New column called as (months DIFF Bucket) logic to determine the new column
Condition 1 - months difference between CURRENT DATE and FUTURE DATE and flag values as 0-3 months.( See      attached Expected Output)


- Second New Column called as (FLAG)
Take the condition 1 from the above step and check where the months DIFF Bucket = 0-3 months and then take the CURRENT DATE and check CURRENT DATE Date is between 12 and 15 months post the CHECK DATE.( See attached Expected Output)

 

- Third New column called as FINAL
CATEGORY = ELECTRONICS OR CATEGORY HOUSEHOLD AND
months DIFF Bucket = 0-3 months AND 
FLAG = 12-15 months THEN 'YES' ELSE 'NO'

 

Any help would be much appreciated.

 

Attached the Sample workflow with Expected Output Screen shot.

 

Thanks

 

4 REPLIES 4
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @suby ,

 

Here is a workflow doing what you need using a Formula tool.

 

I think you can adapt dates logic based on your need but it works for your example !

 

Capture d’écran 2021-07-20 à 23.29.07.png

suby
11 - Bolide

Hello Jean,

 

Thanks for your solution and just to clarify one thing 

 

On my FLAG column formula i want to take condition of my months DIFF BUCKET  = 0-3 months how to bring this into the FLAG column formula.

Jean-Balteryx
16 - Nebula
16 - Nebula

You can add AND [months DIFF BUCKET] ="0-3 months" after the > 12 part! 

suby
11 - Bolide

Thanks Jean

Labels
Top Solution Authors