Create calculated member using arithmetic operators and member property of dimension member

Practical - 4
Create calculated member using arithmetic operators and member property of dimension member.

Download Practical

Calculated members are members of a dimension or a measure group that is defined based on a combination of cube data, arithmetic operators, numbers, and functions.
For example, you can create a calculated member that calculates the sum of two physical measures in the cube. Calculated member definitions are stored in cubes, but their values are calculated at query time.

Follow the Steps to create new calculate measure

1.      Open Cube Designer for the Analysis Services Tutorial cube, and then click the Calculations tab.

2.      On the toolbar of the Calculations tab, click New Calculated Member. A new form appears in the Calculation Expressions pane within which you define the properties of this new calculated member. The new member also appears in the Script Organizer pane.

3.      In the Name box, change the name of the calculated measure to [Total Amount].

4.      On the Metadata tab in the Calculation Tools pane of the Calculations tab, expand Measures and then expand Fact Internet Sales to view the metadata for the Fact Internet Sales measure group.

5.      Drag SalesAmount from the Metadata tab in the Calculation Tools pane into the Expression box in the Calculation Expressions pane.

6.      In the Expression box, type a plus sign (+) after [Measures]. [Sales Amount].

7.       In the Format string list, select "Currency".

8.      In the Non‐empty behavior list, select the check boxes for Unit Price and Sales Amount then click OK.

9.      On the toolbar of the Calculations tab, click Script View, and then review the calculation script in the Calculation Expressions pane.

Fig 1 Defining Calculated Members



Fig 2 Shows Calculation scripts


Browsing the New Calculated Members

Drag and drop the Calculated Measure.


Fig Browsing the new calculated members

Comments

Popular posts from this blog

Study of DB Miner Tool

Study of WEKA tool