Add a Snowflake Dimension
In AtScale, a snowflake dimension refers to a logical dimension comprised of columns coming from more than one physical dataset.
Note: Unhandled NULL
values in key columns will result in incomplete
aggregate tables and unexpected query results. See the Custom Empty
Member
feature for more details.
Procedure
To add a snowflake dimension:
-
In Design Center, click the plus icon at the top of the page and select New dimension. The Edit Dimension panel opens.
-
Select a Type for the dimension, and enter a Unique name and Label.
-
In the Hierarchies section, add a hierarchy to the dimension.
-
In the Repo Browser, locate all the datasets that will make up the snowflake dimension and drag them to the dimension Canvas.
-
Drag the dataset column that represents the dimension's key level attribute just below the hierarchy name in the Hierarchies section of the Edit Dimension panel. The Create Level panel opens.
-
Complete the fields for the level, then click Apply.
-
In the Edit Dimension panel, continue adding levels by dragging dataset columns just above the previous level in the Hierarchies section. A hierarchy should be structured with the most granular level on the bottom to the most general on top.
As you add a level from a column of a different dataset, AtScale automatically creates the level relationship if the dataset in the lower level contains a column of the same name. For example
day.monthkey
rolls up tomonth.monthkey
. If the relationship cannot be created, you must select the dataset columns to link the new level to the one below it. -
Click Apply when you are done.