Re: Is there a way to stop a problematic MDX query? -
11-07-2003
, 02:02 AM
Another suggestion to rewrite the query is
WITH
SET [RowSet] AS
'{[Product].AllMembers} * {[Customers].AllMembers}'
SET [ColumnSet] AS '{[Measures].[Store Sales]}'
Select
Subset(
TopCount([RowSet],100,[ColumnSet].Item(0)) ON ROWS,
[ColumnSet] ON COLUMNS
FROM [Sales]
And, of course, as Brian said, depending on the cube, you could also use
WITH
SET [RowSet] AS
'NonEmptyCrossJoin({[Product].AllMembers} , {[Customers].AllMembers})'
SET [ColumnSet] AS '{[Measures].[Store Sales]}'
Select
Subset(
TopCount([RowSet],100,[ColumnSet].Item(0)) ON ROWS,
[ColumnSet] ON COLUMNS
FROM [Sales]
--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
================================================== |