Use calendar, time and snapshot definitions
On this page
Calendar, time and snapshot helpers provide reusable temporal structures for datamart transformations.
Use ETL → Calendar dimension, Time dimension or Snapshot dimension to open the corresponding wizard. A calendar supplies daily keys; a time dimension supplies time-of-day interval keys; the snapshot dimension exposes named observation dates. None of these actions loads a fact table.
For exact fields, initial values, limits and immediate DWH effects, use the reference:
- Calendar creation, including the inclusive range, key-0 row and optional date-to-key macro.
- Time creation, including valid periods and generated interval keys.
- Snapshot dimension creation, including repository-wide uniqueness and view creation.
Before finishing a wizard, connect to the intended repository/DWH and check the target schema and shared star associations. Calendar and snapshot creation can attempt DWH view creation immediately; inspect errors and the actual view rather than interpreting wizard closure as deployment success.
Create and verify calendar or time keys
- Open the appropriate wizard and select an existing schema.
- Set the calendar dates or time period using the linked field reference. Select stars with the add arrow if those dimension associations are required.
- Keep or change the optional conversion-macro name. Check existing mappings before choosing a different name from their expected macro.
- Select Finish. Open the resulting transformation and inspect its generated definition and result-key column. Verify view availability separately; the time wizard does not make the final view-execution call used by the calendar/snapshot helpers.
- After applying the view through the appropriate generation/deployment route, check its row count, first/last nonzero key and macro results before using the keys in fact mappings.
For a small verification case, a calendar requested from 2026-01-01 through 2026-01-03 should define three daily rows (keys 1–3) plus the key-0 row. A time period of 60 minutes should define 24 intervals plus key 0. Check NULL input, the first interval/date, the last interval/date and out-of-range calendar input against the macro contract. These expectations follow the generated SQL; this exercise has not been executed against Demo_Northwind AI.
Snapshot metadata
A Snapshot defines a named expression for calculating an observation date. Snapshot groups collect related definitions. A transformation can select a group or individual snapshots; this enables reusable time selections rather than duplicating the same definition in each fact.
Look up the Snapshot editor, Snapshot group editor, Snapshots list and Snapshot groups list for field and command behavior. Saving definitions, evaluating dates in the DWH and loading snapshot facts are separate operations. Saving a group regenerates stored definitions of referencing transformations; it does not apply those views or refresh fact data.
Procedure
- Decide whether the fact needs current values or observations at selected dates. Review history-join modes before choosing the transformation history mode.
- From the Snapshots list, select New, or double-click a definition to edit it. Set its date expression and select Save. This saves repository metadata; it does not calculate the DWH date.
- Create or edit a snapshot group if the same collection will be reused. Add the required existing snapshots and save. Return to the group list to verify persistence, especially when creating a group without members.
- In the transformation's Snapshot section, add separate rows for the intended groups and individual snapshots. See assignment behavior and availability. Check the resolved selections; an empty set is not a request for zero dates.
- Save the transformation and inspect the generated VIEW: verify which snapshot IDs it filters, the Valid from/Valid to predicates and the resulting grain. The single-source SnapshotHist branch has a known difference documented in the history-join guide; do not assume every mode uses identical filtering.
- Prepare the DWH snapshot configuration and evaluate its dates through the applicable deployment/runtime route. The inspected synchronization path seeds definitions only when the DWH snapshot table is empty, so saving a changed expression in the repository does not guarantee replacement of existing DWH definitions. Verify the destination definitions and evaluated dates explicitly.
- Generate/apply/run the dependent objects using the generation and deployment workflow. Check source-history boundary dates and resulting fact rows as well as messages. No automatic rollback or fact refresh follows from a metadata Save.
Example: a monthly stock fact can use a monthly snapshot selection, while a daily operational fact may select individual dates. Validate boundary dates and overlapping history independently; choosing a snapshot does not fix overlapping validity intervals.
For calendar references derived from a macro, see Referenced table.
Verification and limits
Use a small nonproduction case with one key and known historical versions. Record the snapshot expression, its evaluated DWH date, selected group members and generated join predicate. Check the version on each side of the date boundary and verify that adding the same snapshot both directly and through a group does not introduce duplicate IDs in the resolved selection. An example configuration is not proof of executed results; sample execution remains pending.
If the expression was saved but the date did not change, distinguish repository metadata from the DWH copy before rerunning loads. If group membership changed but the view still selects old IDs, inspect the regenerated stored definition and whether it has been applied to the DWH. Keep generation/apply/load failures separate; see generation and loading diagnosis.