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


Latest versions
Click to subscribe

 June 26, 2009

RadarCube VCL 1.12.0

Changes...Download...

 

 June 21, 2009

Essential Pack Pro for ASP.NET 1.10.0

Changes...Download...

 

 June 21, 2009

Essential Pack for ASP.NET 1.10.0

Changes...Download...

 

 June 9, 2009

RadarCube ASP.NET 2.20.3

Changes...Download...

 

 June 8, 2009

RadarCube WinForms MSAS 2.10.1

Changes...Download...

 

 June 8, 2009

RadarCube WinForms Desktop 2.10.1

Changes...Download...

 

 April 28, 2009

HierCube VCL 4.51.0

Changes...Download...

 

 November 5, 2008

WinForms Chart 1.00.1

Changes...Download...

 

Related articles
Click to subscribe

 June 29, 2009

Templating columns for Essential Pack Grid

Details...

 

 June 3, 2009

Customizing RadarCube for ASP.NET

Details...

 

 May 8, 2009

Hierarchy members' attributes

Details...

 

 February 10, 2009

Initialization of the OLAP-slice view

Details...

 

 January 28, 2009

Styling RIA OLAP controls

Details...

 

 December 24, 2008

Custom menus in RIA controls

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