Search
English
Creating Calculated Measures and Hierarchy Members with MDX

Starting with the ver. 1.40 RadarCube ASP.NET for MSAS it is possible, even for the end users, to create calculated measures and hierarchy members with MDX expressions through the toolbox and the appropriate items of the context menu.


End User’s Guide

End users are able to create calculated measures either by using the "Create Calculated Measure" icon in the toolbox, or selecting the appropriate item from the context menu of the "Measures" cell in the Level Captions area.


Editing calculated measures is available through the context menu of either the measure name or the data cells from this measure.


To create calculated members, use the appropriate item from the context menu of the Level Caption cell. To edit or remove a calculated member, use the context menu of the cell with its name.



Programmer’s Guide

To create or remove calculated measures, use the TOLAPGrid.Measures.AddCalculatedMeasures and TOLAPGrid.Measures.DeleteCalculatedMeasures methods accordingly. The MDX-formula for calculating the measure must be assigned to its Expression property right after its creation. For example:

TMeasure m = TOLAPGrid1.Measures.AddCalculatedMeasure("Calculated");
m.Expression = "[Measures].[Sales Amount] / [Measures].[Order Count]";

To create or remove calculated hierarchy members use the THierarchy.CreateCalculatedMember and THierarchy.DeleteCalculatedMember accordingly. The MDX-formula for calculating the member must be assigned to its Expression property right after its creation. For example:

THierarchy h = TOLAPGrid1.Dimensions.FindHierarchyByDisplayName("Sales Channel");
TCalculatedMember M = h.CreateCalculatedMember("Reseller - Internet", "",
h.Levels[0], null, TCustomMemberPosition.cmpLast);
M.Expression = "[Sales Channel].[Reseller] - [Sales Channel].[Internet]";
Related links

Download Radar-Soft products


Buy Radar-Soft products


Visit our support site


Hot news
Click to subscribe

 July 22, 2010

RadarCube for WPF beta is here

The new RadarCube for WPF version has started.

Details...

 

Latest versions
Click to subscribe

 July 14, 2010

RadarCube ASP.NET 2.44.3

Changes...Download...

 

 June 25, 2010

RadarCube WinForms Desktop 2.31.0

Changes...Download...

 

 June 25, 2010

RadarCube WinForms MSAS 2.31.0

Changes...Download...

 

 May 20, 2010

RadarCube VCL 1.18.0

Changes...Download...

 

 April 22, 2010

HierCube VCL 4.56.0

Changes...Download...

 

 July 15, 2009

Essential Pack Pro for ASP.NET 1.11.0

Changes...Download...

 

 July 15, 2009

Essential Pack for ASP.NET 1.11.0

Changes...Download...

 

 November 5, 2008

WinForms Chart 1.00.1

Changes...Download...

 

Related articles
Click to subscribe

 May 5, 2010

New Silverlight add-on for RadarCube ASP.NET

Details...

 

 March 30, 2010

Designing the Cube with the Cube Creation Wizard

Details...

 

 December 16, 2009

Creating custom Time Intelligence

Details...

 

 November 26, 2009

Creating the correct Cube structure

Details...

 

 September 30, 2009

RadarCube Request tracker

Details...

 

 August 24, 2009

Customizing the toolbox in Ria OLAP controls

Details...
More articles...
Support | Download | Purchase | Partners | Upgrade and Discount Policy | Contacts © 2005-2010 Radar-Soft, L.L.C. All rights reserved.