Position on one of the {@link CellSetAxis} objects in a {@link CellSet}.
An axis has a particular dimensionality, that is, a set of one or more dimensions which will appear on that axis, and every position on that axis will have a member of each of those dimensions. For example, in the MDX query
SELECT {[Measures].[Unit Sales], [Measures].[Store Sales]} ON COLUMNS,
CrossJoin(
{[Gender].Members},
{[Product].[Food], [Product].[Drink]}) ON ROWS
FROM [Sales]
the COLUMNS
axis has dimensionality {[Measures]
} and the ROWS
axis has dimensionality {[Gender]
, [Product]
}. In the result,
Gender | Product | Unit Sales | Store Sales |
All Gender | Food | 191,940 | 409,035.59 |
All Gender | Drink | 24,597 | 48,836.21 |
F | Food | 94,814 | 203,094.17 |
F | Drink | 12,202 | 24,457.37 |
M | Food | 97,126 | 205,941.42 |
M | Drink | 12,395 | 24,378.84 |
each of the six positions on the ROWS
axis has two members, consistent with its dimensionality of 2. The COLUMNS
axis has two positions, each with one member.
@author jhyde
@version $Id: Position.java 315 2010-05-29 00:56:11Z jhyde $
@since Aug 22, 2006