Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date Range from another source

Ultralightbeam
8 - Asteroid

I have dates table below

DatesLookup table

MondayFriday
2021-01-112021-01-22
2021-01-25 2021-02-05
2021-02-08 2021-02-19
2021-02-22 2021-03-05

 

and another table which contains "TimestampDates" column

 

I want to add another column where the "TimestampDates" column belongs to in a monday to friday range. 

 

Output will be

TimestampDatesMondayFriday
2021-02-032021-01-25 2021-02-05
2021-02-092021-02-082021-02-19
2 REPLIES 2
Assaf_m
11 - Bolide

If your data set is small you can use the attached solution, otherwise, you need to use the "Generate Rows" and "Join" Tools 

 

 

Assaf_m_0-1612348614808.png

let me know if this helps.

 

 

AngelosPachis
16 - Nebula

Hi @Ultralightbeam ,

 

Another way would be to use a generate rows tool to generate all dates between Monday and Friday. Then with the join tool, you can join the timestamp dates on the generated dates from the generate rows tool.

 

AngelosPachis_0-1612350041861.png

 

 

That should work for larger datasets as well, as there is no need to append.

 

Cheers,

 

Angelos

Labels
Top Solution Authors