CalendarDateDimension
This table is similar to a typical Data Warehouse "Date Dimension". Link your dates to this table to avoid processing date functions on the reporting server. When you use your reporting tool's date functions to do filtering, all rows will usually be returned to your reporting tool and stored in memory while the tool runs date functions to eliminate rows that don't meet your criteria. This can be very slow. This table helps eliminate that necessity and helps you treat your Clarity database like a data warehouse.
| Column Name | Type | Description |
|---|---|---|
| DayOfWeekNumber | INTEGER | The category number of the day of the week. The values in this column start at 1 for Sunday and end at 7 for Saturday. You can join to this column from day of the week columns based on ZC_WHICH_DAYS, or with a Format INI of "ECT" and a Format Item of "710". If the other column is based on ZC_DAY_OF_THE_WEEK or has a Format INI of "SCH" and a Format Item of "130", use DAY_OF_THE_WEEK_C instead. |
| MonthNameLongForm | VARCHAR | The month name in long form. For example, "February". |
| DayOfMonthNumber | INTEGER | This is the "day" part of the date only. For example, if the date is May 13, this column contains "13". |
| LastDayOfQuarterDate | DATETIME | This date is the last day of the quarter. |
| IsWeekendIndicator | VARCHAR | Contains "Y" for weekend days. Otherwise, contains "N". Depends on the locale definition. |
| InternalDateValue | INTEGER | The OLTP database stores some dates in an internal integer format known as the DTE. The DTE increases as time goes on. This column contains the DTE. |
| YearAndQuarterFormattedString | VARCHAR | This column contains the year and quarter information in the format 'YYYY Q#'. |
| DayOfWeekName | VARCHAR | Monday, Tuesday, etc. |
| SameDayLastYearDate | DATETIME | This column returns the date of a year ago. If CALENDAR_DT=2/24/2009, then this column will return 2/24/2008. If CALENDAR_DT is Feb. 29th, then this column returns nothing. |
| YearlyQuarterNumber | INTEGER | This column contains the yearly quarter number in integer form. For example, February is in Quarter 1 while November is in Quarter 4. |
| BusinessDaysSinceEpochCount | INTEGER | This column contains a number representing the number of business (non-weekend, non-holiday) days since 1850-01-01. This column will take into consideration holidays that are set at the Service Area or Location level, but not those set at the Department level. |
| LastBusinessDayOfWeekInMonth | DATETIME | The last occurrence that month of the last business day of the week. This may or may not be a Friday, depending on the locale definition. Used to help determine the last full business week of the month. |
| PreviousDayDate | DATETIME | This is the previous day's date. |
| IsHolidayIndicator | VARCHAR | Indicates whether the date is a holiday. "Y" represents that the date is a holiday, otherwise a value of "N" will appear. Depends on the locale definition. |
| UnitedStatesFederalFiscalYearLastDate | DATETIME | This column contains the last date of the United States federal fiscal year. The U.S. federal fiscal year currently begins on 1 October and ends on 30 September. The current fiscal year went into effect on 1 October 1976; this column is not accurate for dates prior to 1 October 1976. |
| DateYearBegin | DATETIME | The first day of the year for the date in datetime format. |
| YearMonthString | VARCHAR | This column contains the year and month number as a string in the format 'YYYY-MM'. |
| CalendarDateString | VARCHAR | The date formatted as a string, in the format 'YYYY-MM-DD'. |
| QuarterString | VARCHAR | This column contains the quarter number as a string in the format 'Q#'. |
| WeekBeginDatetime | DATETIME | The first day of the week in datetime format. |
| CalendarDate | DATETIME | The date in normal date format. |
| QuarterBeginDateString | VARCHAR | The first day of the quarter formatted as a string, in the format 'YYYY-MM-DD'. |
| WeekOfYearNumber | INTEGER | The number of the week in the year. Depends on the locale definition. |
| IsLastDayOfMonthIndicator | VARCHAR | Indicates whether or not the date in this row is the last day of a month. This is frequently used as a filter and should be used instead of comparing CALENDAR_DT to MONTH_END_DT. |
| MonthNumber | INTEGER | The month in integer form. For example, February will be "2". |
| YearAndMonthNumeric | VARCHAR | To help group by month, this column contains the month and year. The format is YYYYMM. |
| MonthNameWithYear | VARCHAR | This column contains the month and year in 'MonthName YYYY' format. For example, if the CALENDAR_DT is 2012-01-31, this column would display 'January 2012'. |
| DayOfWeekNumeric | INTEGER | Contains a number representing the day of the week in the current locale for the corresponding CALENDAR_DT. The first day of the week is 0 and the last day of the week is 6. For example, Sunday is the first day of the week in the United States. So Sunday would be 0 and Saturday would be 6 in this column. |
| FollowingDayDate | DATETIME | This is the date of the next day. Use this column to help linking datetime values. For example, CONTACT_DATE>=CALENDAR_DT and CONTACT_DT<TOMORROW_DT |
| WeekdayCount | INTEGER | This column contains a number representing the number of weekdays since 1850-01-01. This column does not take holidays into consideration. |
| UnitedStatesFiscalYearBeginDate | DATETIME | This column contains the first date of the United States federal fiscal year. The U.S. federal fiscal year currently begins on 1 October and ends on 30 September. The current fiscal year went into effect on 1 October 1976; this column is not accurate for dates prior to 1 October 1976. |
| MonthBeginDateString | VARCHAR | The first day of the month as a string, in the format 'YYYY-MM-DD'. |
| QuarterBeginDate | DATETIME | This date is the first day of the quarter. |
| LastDayOfMonthDate | DATETIME | This is the last day of the month. For example, 02/28/2007. |
| WeekBeginningDateString | VARCHAR | The first day of the week as a string, in the format 'YYYY-MM-DD'. |
| EpicIntegerDate | INTEGER | Much of the date information stored in the OLTP system is in an integer format known as DAT. The DAT is equal to 121531-DTE. The DAT decreases as time goes on. This column contains the DAT. |
| DayOfYearNumber | INTEGER | This column contains the Nth day of the year. For example, January 1 will be day 1 and December 31 will normally be day 365. |
| WeekYear | INTEGER | The four-digit year that the WEEK_NUMBER corresponds to. Depending on where in the week the new year starts and the locale definition, this may be the year before or after the actual date. For instance, December 31st may be considered part of the first week of the following year. |
| IsLeapYearIndicator | VARCHAR | This column shows whether this year is a leap year. |