Forum Discussion
Calculate a working week date range inside a broader day range considering different calendar reason
Hi Mike22 ,
It seems like your table contains multiple same user request, I'd like to suggest you add index column to these table to define each request.
After these steps, I think you can use index and user id to find out correspond records to compare with these records to check if actual date range are into request ranges.
Then you can if statement with weekday function(use WeekDay on start/end date to extract weekday) to compare with conditions and return 'IN' result.
Regards,
Xiaoxin Sheng
- Mike227 years ago
Helper III
Hello Anonymous
Thank you for your reply. Is it possible to give me a bit more detail?
I can create an index table with unique person IDs but how do I then check all the dates to see if there is a "travel requested" entry covering the the "actual travel" period.
Thanks,
Mike
- Anonymous7 years agoNot applicable
Hi Mike22
Can you explain step by step how you arrived at the final table.
Like what you compared with what ?
Cheers
CheenuSing