Dimension Load
Description
Section titled “Description”Loads or updates a dimension from data in a PlaidCloud table. Handles both initial loads (creating the hierarchy from scratch) and incremental updates (adding members, changing parents, updating properties without rebuilding from zero).
Supports two source data shapes: Parent-Child (one row per edge in the tree) and Levels (one column per hierarchy level, one full path per row). Values, aliases, and properties can be loaded alongside the structural data.
Dimension Selection
Section titled “Dimension Selection”Specify Dimension Dynamically
Section titled “Specify Dimension Dynamically”To specify a dimension dynamically you include project and or local variables in the name.
Variables are useful when dimensions are updated on a periodic basis and retaining the historical view is desired.
An example that uses the current_month variable to dynamically load the dimension:
dimension_name_{current_month}Use Specific Dimension
Section titled “Use Specific Dimension”To use a specific dimension select the dimension using the drop down menu.
Load to Alternate Hierarchy
Section titled “Load to Alternate Hierarchy”To load an Alternate Hierarchy fist select the dimension either dynamically or specifically, click the Load to Alternate Hierarchy checkbox and enter the name of the alternate hierarchy to be loaded.
A member that is not in the main hierarchy can sit in only one alternate hierarchy. A load that would also place it in a second alternate fails and names the member and the alternate that already holds it. To use a leaf in several alternates, add it to the main hierarchy first. A parent needs its own name in each alternate, because an alternate cannot add members under a main hierarchy member.
Source Table
Section titled “Source Table”Dynamic
Section titled “Dynamic”To specify the source table dynamically click the Dynamic Checkbox and enter the table name including the project and or local variables in the name.
Static
Section titled “Static”To use a specific source table select the table using the drop down menu.
Dimension Properties and Table Layout
Section titled “Dimension Properties and Table Layout”Default Consolidation Type
Section titled “Default Consolidation Type”There are three options for consolidation types:
- “+”: Aggregates values in the dimension.
- “-”: Subtracts values in the dimension.
- “~”: No aggregation is performed in the dimension.
Table Column Format
Section titled “Table Column Format”There are two options for formatting the Source Table when loading a dimension.
Parent Child
Section titled “Parent Child”In a Parent Child table there are two columns that represent the dimensions structure, Parent and Child.
EXAMPLE PARENT CHILD
| PARENT | CHILD | Consolidation Type |
|---|---|---|
| Parent All | Parent 1 | ~ |
| Parent All | Parent 2 | ~ |
| Parent 1 | Child 1 | + |
| Parent 2 | Child 2 | + |
| Child 1 | Child 3 | + |
| Child 1 | Child 4 | + |
| Child 2 | Child 5 | + |
A row with an empty parent loads its child as a top-level member, directly under the root. A row with an empty child is skipped.
Flattened Levels
Section titled “Flattened Levels”In a Flattened Level table there are an infinite number of columns with each column representing a level of the dimension.
EXAMPLE FLATTENED LEVELS
| Level 1 | Level 2 | Level 3 | Level 4 |
|---|---|---|---|
| Parent All | Parent 1 | Child 1 | Child 3 |
| Parent All | Parent 1 | Child 1 | Child 4 |
| Parent All | Parent 2 | Child 2 | Child 5 |
Column Mapping
Section titled “Column Mapping”The Populate columns button fills the Source Column in the data mapper with the source table’s columns. Once the Source Column has been populated use the Kind drop down menu to map the Source Columns to the appropriate column type. Clicking Populate columns again keeps the Kind and Property Type you chose for each column the table still has.
Property Type
Section titled “Property Type”A column whose Kind is Child Property loads into a property of the dimension. Its Property Type gives that property a role: Source, Target, Driver, Filter, Sequencing, Include, Context or Tag, the types a dimension’s Property Configuration offers. Leave it at (none) for an ordinary property. On a column of any other Kind, the Property Type is ignored.
An allocation finds the properties of its assignment dimension by their type, which is part of each property’s name. An Allocation: Split using Dimension step needs exactly one Driver property, and reads others such as Source, Target and Include. Setting the type here is how a dimension you load gets those properties.
A typed column loads into the property the Property Configuration names for that type: the column name up to its first !!, then !!, the type and !!. With (none), the property takes the column’s own name.
| Source Column | Property Type | Loads into |
|---|---|---|
Region |
(none) | Region |
Region |
Driver | Region!!driver!! |
Activity |
Source | Activity!!source!! |
- The load writes only into that property. When the dimension doesn’t have it, the load creates it with that type. It never renames an existing property or changes its type.
- A property the load creates for an untyped column whose name already ends in a type, such as
Region!!driver!!, is given that type.
When you save the step, it asks first if the load would leave its dimension more than one Driver property, since an allocation over the dimension needs exactly one. It counts the Driver properties the load writes, from Child Property columns typed Driver and untyped columns already named for it, such as Region!!driver!!, together with the dimension’s own when you chose it with Use Specific Dimension. A property counts once, however many of these name it. The Driver Properties warning names them: An allocation over this dimension needs exactly one Driver property; it would have 2: Region!!driver!!, Site!!driver!!. Save Anyway saves the step, and Cancel goes back to it. A load that writes no Driver property doesn’t ask. The dimension’s own properties don’t count when you specify it dynamically, or when they can’t be read within 5 seconds.
The run stops, naming the columns or the property, when:
- two columns would load into the same property, such as a
Regioncolumn typed Driver beside a column namedRegion!!driver!!: Columns Region and Region!!driver!! would both load into Region!!driver!! - the load would create an Include property on a dimension that already has another one.