Associate an Attribute with a Logical Level in Dimension Tables
You can associate attributes with a logical level.
You can associate measures with levels from multiple dimensions and aggregate to the levels specified. A measure is associated to a level is called a level-based measure. A level-based measure is computed at that grain, even when the query context has a lower grain. For example, if yearlySales is associated to year level, it's computed at the yearly level in the following query: Select month, yearlySales.
Dimensions are displayed in the Dimensions list. If the attribute is associated with a logical level, the level appears in the Levels list.
Another way to associate a measure with a level in a dimension is to expand the dimension tree in the logical layer, and then use drag-and-drop the column on the target level. See Level-Based Measure Calculations.
- On your home page, click Navigator
and then click Semantic
Models. - In the Semantic Models page, click a semantic model to open it.
- Click Logical Layer
. - In the Logical Layer pane, browse for the table with the logical column that you want to add an aggregation level to. Double-click the column.
- In the logical table, click the Columns tab.
- In the column table, click the column to highlight it, and then click
Detail view
to view its properties. - In the logical column's Aggregation properties, click the Aggregation Rule field and select an aggregation rule.
- Click Add Aggregation by Level and in the Dimension field select a logical table source.
- Click the Logical Level field and select a level.
- Click Save.