The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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

Alteryx Designer Desktop Discussions

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

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

ajohnson211
Meteoroide

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 RESPOSTAS 13
binu_acs
Polaris

@ajohnson211 One way of doing this

binuacs_0-1676314246000.png

 

ShankerV
Castor

Hi @ajohnson211 

 

One way of doing this.

ShankerV_0-1676314396816.png

 

Many thanks

Shanker V

ajohnson211
Meteoroide

This is a great start! Thank you! 
Now, how do I get the output month-day to be the month from the date processed?

ie: 

Date Processed:

1/18/2023 11:03:56

 

Date:

2023-01-18

 

Output:

January-31

 

ajohnson211
Meteoroide

Thank you!! 

How do I get the output month-day to be the month from the date processed?

ie: 

Date Processed:

1/18/2023 11:03:56

 

Date:

2023-01-18

 

Output:

January-31

ShankerV
Castor

Hi @ajohnson211 

 

Please find the expected result.

 

ShankerV_0-1676317309320.png

 

Many thanks

Shanker V

 

 

binu_acs
Polaris

@ajohnson211 Updated the workflow

 

binuacs_0-1676316898222.png

 

ajohnson211
Meteoroide

I appreciate the update, but it won't work for the year. I will eventually have dates for 2023, and I need it to read those  and give the correct Month output.

ajohnson211
Meteoroide

Could you include a file for me to see? I cannot see your other two formulas.

binu_acs
Polaris

attaching the workflow

Rótulos
Autores com maior número de soluções