Joined: 15 Oct 2010
Online Status: Offline
Posts: 52
Topic: calendar activity report Posted: 18 Jan 2017 at 4:48pm
how does import calendar into a report? does any one know? I need to create report which is contain of date of a month so all the the date of the month should be displayed.
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 19 Jan 2017 at 3:48am
There are a couple of ways to do this:
1. Create an Excel spreadsheet that contains all of the dates and use it in the report.
2. Create a calendar table in your database and use that in the report. The structure that I usually use for this table is the following:
Field Name Data Type
---------- ---------
DATE_VALUE Date or DateTime
DATE_MONTH Number
DATE_YEAR Number
DATE_QUARTER Number
DATE_WEEKDAY Number
IS_HOLIDAY Bit
BUSINESS_DAY_SEQ Number
The BUSINESS_DAY_SEQ field uses the following logic:
increment by 1 for each business day. Each non-business day has the same value as the most recent business day. An example of this is (using a US calendar...):
By including the additional fields, you can do a lot of different types of filters and it makes it very easy to calculate the number of business days between two dates.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum