Tutorials
MSAS
Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2
Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2 - Page 2
Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2 - Page 3
Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2 - Page 4Microsoft Analysis Services supports calculations up to the most granular levels in a cube. Calculations can be defined for members of a dimension, for a combination of cells or even a single cell.
Right click the Expense Budget cube and click Browse Data.
Drag and drop the scenario dimension to replace the measures dimension. Note that the current year’s Budget member does not contain any data.
|
|
Close the cube browser and click the Shared dimensions folder in the Analysis Manager tree pane.
Right click the Scenario dimension and then click Edit.
|
|
Click on the Data tab to display the dimension tree.
Expand the Dimension to select the Current Year’s Budget member. Note that the Custom Member Formula pane is enabled.
|
|
Click the ellipsis(…) button to open the MDX Builder Dialog box. Expand Level02 of the scenario dimension tree, and then drag Current Year’s Actuals to the MDX expression field.
The MDX expression field is updated with the Member Key definition of the member.
At the end of the expression let us enter “*1.1”. Click Ok.
|
|
Save the changes. Notice that the Budget member has changed and shows the formulas associated with it.
|
|
Close the Dimension Editor.
Now expand the Cubes folder and right click on the Expense Budget. Click on Browse Data.
Drag the Scenario dimension to replace the measures dimension. Note that the Current Year’s Budget member now contains data. This data is calculated at 110% of the actual.
|
|
Close the Cube Browser.
Next Page: Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2 - Page 4