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

 March 9, 2010

RadarCube WinForms Desktop 2.25.0

Changes...Download...

 

 March 9, 2010

RadarCube WinForms MSAS 2.25.0

Changes...Download...

 

 February 26, 2010

RadarCube VCL 1.16.0

Changes...Download...

 

 February 25, 2010

HierCube VCL 4.55.0

Changes...Download...

 

 February 17, 2010

RadarCube ASP.NET 2.35.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

 September 30, 2009

RadarCube Request tracker

Details...

 

 August 24, 2009

Customizing the toolbox in Ria OLAP controls

Details...

 

 July 15, 2009

How to localize Essential Pack for ASP.NET

Details...

 

 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...
More articles...
Support | Download | Purchase | Partners | Upgrade and Discount Policy | Contacts © 2005-2009 Radar-Soft, L.L.C. All rights reserved.