Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to automate holiday exclusion in NetWorkDays but keep getting an error.
My app helps control a process. Employees from different countries must complete a task within 48 working hours - excluding weekends and public holidays. Each employee has different public holidays since they're from different countries.
I've been using NetWorkDays(StartDate, EndDate) with the right result. I've also tried adding holidays manually and it works: NetWorkDays(StartDate, EndDate, '01.01.2020', '02.01.2020').
If I try to use a concat for the holidays, it breaks. I've tried all the options below. Needless to say, when I print simply the results of the Concat, everything is fine.
What am I doing wrong? It seems like Concat is not the right option, but why?
Cheers,
Fabio
Hi
It works for me what @martinpohl suggested please go thru the app attached
Thanks
Hi
try creating a variable and assign the holidays to that variable and use that in the expression.
Hope this helps
thanks
Hi,
Do you mean like vListHolidays = Concat(HolidayDate, ', ')?
I have already tried but it didn't work.
Best,
Fabio
Hi
Can u please tell me what is in the Holiday date and format?
Thanks
It's date objects in standard format - e.g. 01.01.2020.
I have created a test app for clarity.
Best,
Fabio
try instead:
vListHolidays = chr(39)&Concat(HolidayDate, chr(39)&','&chr(39))&chr(39)
to set all holidayday dates in ' '
Regards
Hi,
It doesn't change anything 😕
Hi
It works for me what @martinpohl suggested please go thru the app attached
Thanks
Thanks, issue found! Your app adds an equal sign to the variable expression (which is why it cannot be printed in the table). With that, everything works.