User Report to See Vacations This Year, But also adds business holidays dates from User's Schedule?
HI
Looking for your expertise in regard to pull only vacation days without Saturday & Sunday and also exclude exception holidays from Schedule.
Actually, created one User based report, and added two text mode columns,
1) Column name: Vacation this year, but this does not able exclude the exception days registered from user schedule, for example 31st December. This day is holiday at our office which is registered in user schedule
Text code "Vacation this year":
listdelimiter=<br>
listmethod=nested(reservedTimes).lists
name=Vacation This Year (dd/mm/yy)
textmode=true
type=iterate
valueexpression=IF({endDate}>$$TODAYey,"",IF({endDate}>$$TODAYby,CONCAT({startDate}," - ",{endDate}),""))
valueformat=HTML
2) Column 2: Vacation in number days total in number: This collects total number of days for each time vacation taken by user during this year.
Text code "Total vacation days":
displayname=Vacation Days in 2020 (Working Days Only)
listdelimiter=<br>
listmethod=nested(reservedTimes).lists
textmode=true
type=iterate
valueexpression=IF({endDate}>$$TODAYey,"",IF({endDate}>$$TODAYby,SUM(ROUND(WEEKDAYDIFF({startDate},{endDate})),0),""))
valueformat=HTML
Looking your guidance.
Please.
Mvh
Kundan.