Alteryx Designer Desktop Discussions

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

If a date falls between 2 set dates, return a specific date.

ajohnson211
6 - Meteoroid

I have a column with dates (currently a string but I can easily change to date/time). If the dates are between the 1st-15th of any given month, I want it to return "month-15"

If the same column of dates is between the 16th-end of the month I want it to return the "month-last day of the month"

 

Would someone be able to help me with that?

13 REPLIES 13
ajohnson211
6 - Meteoroid

Thanks. 
It isn't showing your formulas. I am only seeing the New Date formula. Which unfortunately doesn't solve my question about getting the correlated month - 15th or last day of the month.

ajohnson211_0-1676323133544.png

 

DataNath
17 - Castor

Hey @ajohnson211, are you looking for something like this? I've appended an additional 4 records to the bottom of the dataset to show this working with a few more months/days:

 

DataNath_0-1676326852415.png

binuacs
20 - Arcturus

@ajohnson211 sorry,  uploaded the wrong workflow. attaching the correct one

 

binuacs_0-1676327669986.png

 

ajohnson211
6 - Meteoroid

Thank you both! Its working now, I appreciate it!

Labels