Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What is the best way to update this expression
NetWorkDays(StartDate, EndDate, $(vHolidays)) as ExcludeWeekendHoliday
to get this calculation
StartDate | EndDate | ExcludeWeekendHoliday |
12/10/2018 | 12/10/2018 | 0 |
Instead of this calculation
StartDate | EndDate | ExcludeWeekendHoliday |
12/10/2018 | 12/10/2018 | 1 |
I tried including -1 after $(vHolidays) but I don’t think that’s the best way to do it
[Exclude Days]:
LOAD Concat(Chr(39) & [Dates Off] & Chr(39), ',') as Holidays
;
LOAD *
INLINE [
Dates Off,
12/24/2018,
12/25/2018,
]
;
Let vHolidays = Peek('Holidays');
DROP Table [Exclude Days];
tblCalculation:
Load
StartDate,
EndDate,
NetWorkDays(StartDate, EndDate, $(vHolidays)) as ExcludeWeekendHoliday
Resident Supply ;
Drop Table Supply ;
What are you trying in this variable? "vHolidays"