Good morning Epicor Community!
I wanted to see if anyone has some ideas for creating a standalone calendar to be used in BAQ’s.
The purpose would be to have this calendar as a point of reference. Some tables used in my queries do not have daily activity, and creating running totals based off of every day of the month cannot be achieved in these cases. There have been a few occasions where this would have been useful, but my latest task calls for this type of solution.
For example, I am trying to determine daily, monthly, and yearly machine utilization in the LaborDtl table, but this machine does not get used every day. And my boss wants to see a running daily, monthly, and yearly snapshot of the utilization (Earned hours divided by 20 hours per day), regardless of if it was used that day.
Right now, here’s my calculation to get the total hours each day, but it only totals when there is a clock in date -
sum(20) over (partition by year, month order by LaborDtl.ClockInDate)
It would be nice if I could sum 20 hours each day of every month to calculate the earned hours against, but don’t have that point of reference.
I’m not sure if bringing in a UD table containing each day of the month for the next x amount of years would be the best option, or if this can be achieved as a calculated field. Ultimately, I’m not sure what the best solution is, but I’m sure someone would have some ideas!
As always, I appreciate any ideas or suggestions you might have!