Difference between revisions of "Advanced Row and Column selections"

Line 3: Line 3:
 
A named set is a Multidimensional Expressions (MDX) expression that returns a set of dimension members. These can be created at cube level or within an application such as XLCubed.  You can create named sets by combining cube data, arithmetic operators, numbers, and functions.  
 
A named set is a Multidimensional Expressions (MDX) expression that returns a set of dimension members. These can be created at cube level or within an application such as XLCubed.  You can create named sets by combining cube data, arithmetic operators, numbers, and functions.  
  
 +
[[Image:NS8.png|300px|centre]]
  
 +
The report above shows Reseller Sales Amount across All Geographies for fiscal years 2003 and 2004.
 +
 +
We would like to create a named set, Europe which consists of France, Germany and United Kingdom.
 +
 +
Create a calculated set, Europe, as below.
 +
 +
[[Image:NS9.png|300px|centre]]
 +
 +
Double-click on Geography hierarchy and Edit Hierarchy:
 +
 +
[[Image:NS10.png|300px|centre]]
 +
 +
Click on Advanced Tab and then Member Set (last but one on right in window).
 +
 +
The following window will be displayed and you will see the defined named set.
 +
 +
[[Image:NS11.png|300px|centre]]
 +
 +
Select the named set and click OK – you can now choose to include or exclude this named set in your report.
 +
 +
[[Image:NS12.png|300px|centre]]
 +
 +
==Between and Manual MDX==
  
 
In v6.5 two new options are now available, Between and Manual MDX.
 
In v6.5 two new options are now available, Between and Manual MDX.

Revision as of 15:34, 18 October 2011

Named sets

A named set is a Multidimensional Expressions (MDX) expression that returns a set of dimension members. These can be created at cube level or within an application such as XLCubed. You can create named sets by combining cube data, arithmetic operators, numbers, and functions.

NS8.png

The report above shows Reseller Sales Amount across All Geographies for fiscal years 2003 and 2004.

We would like to create a named set, Europe which consists of France, Germany and United Kingdom.

Create a calculated set, Europe, as below.

NS9.png

Double-click on Geography hierarchy and Edit Hierarchy:

NS10.png

Click on Advanced Tab and then Member Set (last but one on right in window).

The following window will be displayed and you will see the defined named set.

NS11.png

Select the named set and click OK – you can now choose to include or exclude this named set in your report.

NS12.png

Between and Manual MDX

In v6.5 two new options are now available, Between and Manual MDX.

NS1.png

The screenshot below shows a simple grid displaying a measure across Products and Calendar Years 2002 – 2004.

NS2.png

Double-clicking on the Date.Calendar hierarchy allows us to edit the hierarchy – click on Advanced tab and you will see window as below

NS3.png

Click on Member Set and the following window will be displayed:

NS4.png

Between

This option allows the user to report for a particular range on that hierarchy. For example, we can choose to report all data between 2002 and 2004 as below:

NS5.png

There is also an option to enter an Excel range as below – we will run the grid report based on values in $I$3 and $I$4. The start range value is in $I$3 and the last range value is $I$4.

NS6.png

Another feature of using the range option is that you can choose to leave one of the ranges blank.

Value in $I$3 Value in $I$4 What will be reported
CY2002 CY2004 Grid report will report data starting CY 2002 through to CY 2004
CY2004 Grid report will report data starting from earliest date through to CY 2004
CY2003 Grid report will report data from CY 2003 through to latest date

Manual MDX

This option allows you to use MDX code – click on the ellipse to the right of the Manual MDX radio button and you will be able to enter MDX code in the following window:

NS7.png

For example if you only want to report CY 2002 and CY 2004 you would enter {[CY 2002], {CY 2004]} in the Manual MDX window. You can also specify an Excel cell range as the MDX source. Once you have defined your named set you can then select to report Descendants, Lowest Descendants or Descendants At.