Free Training


C Language  |  CSS  |  MainFrame  |  VBScript  |  PHP  |  XML  |  C++ Tutorials  |  Ajax  |  JavaScript  |  CSS3  |  UML  |  jQuery  |  Microsoft AJAX

MSAS Tutorials

 
Home Tutorials MSAS
 

Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2

 

Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2 - Page 4

Page 4 of 4


Setting a Calculation for a subcube or a selection of cells


Note that calculated cells are available only with Microsoft Analysis Services Enterprise edition. To set a calculation for a group of cells or a subcube follow the steps below.



In the Analysis Manager tree pane expand the cubes folder and right click the Expense Budget cube. Click Edit.


In the Cube Editor click on Data tab to display the data.


Drag the Scenario dimension in the columns to replace the measures dimension


Expand the Scenario dimension so that its four member columns are displayed.


122.gif



Now right click on the Calculated cells node in the Cube Editor tree pane and then click New Calculated Cells.


The Calculated cells Wizard appears.


Click Next to go on to Define the Calculation Subcube screen.


Select the Account Dimension.


Click Next in the Members Set box and select A Single Member option.


A dimension tree appears. Expand the Dimension and click on Gross Sales.


118.gif



Now select the Scenario dimension and in the Members Set box select A Single Member.
In the Dimension tree select the Current Year’s Actuals.


119.gif




Click Next and the Define the Calculation Condition(optional) dialog box appears.


In the MDX expression box enter “Lookup Cube(“[Sales]”, “(Measures.[Store Sales]”, + time.currentmember.Uniquename+ “.Store.[“+Store.currentmember.name+”])”)”.


120.gif



Click Next to navigate to the final screen. Enter “Gross Sales actual from the Sales cube” in the name box. This name will be used for the object in the Analysis Manager.


Click Finish.


The value for the Current year’s actual, Gross Sales cells have changed. The value shown is derived from Stores Sales measure in the sales cube. The Current year’s Budget cells are also updated automatically based on the member calculation previously defined.


121.gif



Save the changes and close the cube editor.


 






















First Page: Tutorial 55: MSAS - Implementing Calculations Using MDX Part 2


Read Next: Tutorial 56: MSAS - Introducing Solve Order



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Weekly Offers

Sponsored Links