dbTalk Databases Forums  

can i use something other than AGGREGATE()?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss can i use something other than AGGREGATE()? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bp
 
Posts: n/a

Default can i use something other than AGGREGATE()? - 06-02-2004 , 06:01 PM






is there any way to specify a SET in the WHERE clause, other than using AGGREGATE() function?
I'm using AGGREGATE to accept parameters from a web client and limit the query output.
My sets can be fairly large, i.e. they contain hundreds of members and AGGREGATE performs poorly.

for example, I construct a set similar to the following:
SET ABC AS {[dimensionA].[levelB].[key1], [dimensionA].[levelB].[key2], [dimensionA].[levelB].[key3].... [dimensionA].[levelB].[keyN]

and then define a member as follows
MEMBER dimensiona.DEF AS 'AGGREGATE(ABC)

MDX statement is as follows:

SELECT blah on COLUMNS, blah1 on ROW
FROM some_Cub
WHERE (dimensiona.DEF

please help! thanks.

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: can i use something other than AGGREGATE()? - 06-02-2004 , 08:57 PM






The only optimization that comes to mind is using NECJ():

Quote:
With
SET ABC AS {[dimensionA].[levelB].[key1], [dimensionA].[levelB].[key2],
[dimensionA].[levelB].[key3].... [dimensionA].[levelB].[keyN]}
MEMBER dimensiona.DEF AS 'AGGREGATE(ABC)'

-- MDX statement is as follows:

SELECT
NonEmptyCrossJoin(blah, ABC, 1) on COLUMNS,
NonEmptyCrossJoin(blah1, ABC, 1) on ROWS
FROM some_Cube
WHERE (dimensiona.DEF)
Quote:


- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.