Tuple and Sets
Executing the query ...
The 'Geography' hierarchy appears more than once in the tuple.
Execution complete
Have
you gotten this kind of error before. You must have if you do lot of
mdx programming. Unless, we take our time to REALLY understand tuple
and sets, we will continue to run into this error. Tuple is a cell or
section of a cube. Set is a collection of tuples. Its that simple. When
you try to access a cell in a cube, you have to keep mentioning each
dimension until you narrow down the cell or section of the cube.
I am running these queries against cube sample that comes with AS2005
Following query would return aggregates from each geography section of the cube.
SELECT
-- set of 2 tuples
{
[Geography].[Geography].[Country].&[United States]
,
[Geography].[Geography].[Country].&[Canada]
}
ON 0
FROM
[Adventure Works]
GO
This query would return total aggregates of each tuple sliced by 2 individual tuple slicer.
SELECT
FROM
[Adventure Works]
WHERE
{
[Geography].[Geography].[Country].&[United States]
,
[Geography].[Geography].[Country].&[Canada]
}
GO
HTH..
Happy Cubing,
ZULFIQAR SYED
Recent Comments