AnalyticsCreator Docs Preview

Create calendar transformation

On this page
  1. Behavior and conditions
  2. Related guidance
  3. Controls
  4. XAML preview
  5. Window layout
  6. Scope

Creates a reusable calendar transformation, optional date-to-key macro and selected star dimension associations.

All windows and pages · Common controls and reading this reference

Behavior and conditions

Finish validates both dates and requires Date from to be strictly earlier than Date to, even though the generated range includes both endpoints. It saves metadata, derives the result-table/key definition, and, when a nonempty macro name is supplied, attempts to create the DWH view. Leaving the macro name empty skips that final view-creation attempt. View-creation errors in that final attempt are suppressed by the helper, so closing the wizard is not proof of a usable DWH view. There is no single transaction covering all steps.

The generated view contains daily rows with keys starting at 1 and an additional key-0 row dated 1900-01-01. The key column uses the DWH Settings history-ID name. Output includes Date, VeryShortDate, ShortDate, LongDate, Year, Month, Day, Week, Weekday, ISO_Week, CurrentDate, CurrentMonth, PrevMonth and CurrentYear. Week and Weekday use SQL Server DATEPART session semantics; ISO_Week uses ISO week numbering. Current-period flags are evaluated against GETDATE() when the view is queried.

Range limitation: the current generator supplies at most 65,536 daily rows plus the key-0 row. A longer requested range is not rejected, but its final dates are missing. Check the actual last date and macro results before relying on a long range.

Controls

Find a control

General

Available stars

Selected stars

The entries include tabs, grid columns, fields and context-menu actions. Repeated captions can belong to different grids or menus. Selection-dependent and initially hidden controls are included; inclusion is not a promise that every control is visible at once. Fixed choices below are declared choices, not a platform support matrix.

XAML preview

WPF renders the compiled XAML view with the application styles and empty fields. The image variant follows the documentation color theme.

Window layout

XAML illustration: Window layout XAML illustration: Window layout

General

Name

Name of the new transformation within the selected schema. An existing transformation with that name in that schema is rejected. This field names the transformation, not a loaded fact table.

Location: General. Control: Text field.

Initial value: DIM_Calendar.

Schema

Choose an existing repository schema, listed by schema name. Initially selects the first schema of type 4 in that order, otherwise the first available schema. Although the dropdown permits typing, Finish uses the selected schema record; typing is not a create-schema command.

Location: General. Control: Dropdown.

The dropdown also accepts typed input.

Date from

Required inclusive first calendar date. The wizard reads the repository calendar-start setting in yyyyMMdd format; it does not save changed dates back to that setting. Must be earlier than Date to.

Location: General. Control: DatePicker.

Initial value: DWHWIZARD_CALENDAR_FROM; seeded value 19800101 (existing repositories may differ).

Date to

Required inclusive last requested calendar date, strictly later than Date from. The wizard reads but does not update the repository calendar-end setting. See the 65,536-row range limitation above.

Location: General. Control: DatePicker.

Initial value: DWHWIZARD_CALENDAR_TO; seeded value 20401231 (existing repositories may differ).

Date-to-ID macro

Optional SQL-language macro name, unique across repository macros. Blank skips macro creation. The macro maps NULL or dates before the range to 0; in-range dates to days since Date from plus 1; dates after Date to to the last requested key. This last key may not exist if the requested range exceeds the generator limit. When DEFAULT_CALENDAR_MACRO is empty, the created macro becomes that default; an existing default is retained. The macro is associated with the generated result table when available.

Location: General. Control: Text field.

Initial value: Date2ID.

Available stars

Location: General. Control: Group.

Available stars

Available stars that can be associated with the generated transformation

Existing repository stars, sorted by name. Select one and use the add arrow to place it in Selected stars; selecting it here alone does not associate it.

Location: Available stars. Control: ListBox.

General

→

Adds the currently selected Available stars entry to Selected stars. Repeated addition of the same star has no effect; no selection has no effect.

Location: General. Control: Button.

←

Removes the currently selected entry from Selected stars. Does not delete the star from the repository; no selection has no effect.

Location: General. Control: Button.

Selected stars

Location: General. Control: Group.

Selected stars

Stars selected for the generated transformation

Stars to receive dimension associations when Finish creates the transformation. Starts empty. Each association uses the transformation name as its star transformation name and is marked as a dimension (not a fact).

Location: Selected stars. Control: ListBox.

General

Cancel

Closes the wizard without invoking Finish. It does not roll back metadata or DWH actions from an earlier failed Finish attempt.

Location: General. Control: Button.

Finish

Checks date presence/order and duplicate transformation/macro names, then creates the calendar definition and selected dimension associations. With a nonempty macro name, also attempts DWH view creation. Inspect the result table, generated view and macro before using them in mappings; a failed step may leave earlier saved metadata.

Location: General. Control: Button.

Scope

Options can depend on the selected object, its saved values and the current repository.

Search documentation