dbTalk Databases Forums  

Autoexist across dimensions

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


Discuss Autoexist across dimensions in the microsoft.public.sqlserver.olap forum.



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

Default Autoexist across dimensions - 08-09-2005 , 09:40 AM






I know this is not a supported scenario in Analysis Services 2005 but i just
wanted to know if anyone had same requirements and have a solution for it.
Thanks.

Reply With Quote
  #2  
Old   
Chris Webb
 
Posts: n/a

Default RE: Autoexist across dimensions - 08-12-2005 , 04:47 AM






Can you be a bit clearer about what you want to do? If you're talking about
regular dimensions then if you have members which you think should exist
together, then perhaps you should think about combining the dimensions.
However, I can think of other scenarios (eg with many-to-many dimensions)
where you would like members from different dimensions to autoexist.

Anyway, the fact remains that you can't do autoexist across dimensions. You
now have two different options in MDX though to test whether combinations of
members exist together in the fact table though. You can either crossjoin two
sets together and get rid of the empty members, for example:

SELECT [Measures].[Internet Sales Amount] ON 0,
NON EMPTY
[Customer].[Customer].[Customer]
*
[Date].[Calendar].[Date].&[915]
ON 1
FROM
[Adventure Works]

Or you can use the new EXISTS() function, which does something slightly
different - it will return all the combinations that exist in the fact table
even if all the measure values for that combination are null (see
http://sqljunkies.com/WebLog/mosha/a.../02/13315.aspx for more
details), for example:

SELECT [Measures].[Internet Sales Amount] ON 0,
EXISTS(
[Customer].[Customer].[Customer]
,
[Date].[Calendar].[Date].&[915]
, "Internet Sales")
ON 1
FROM
[Adventure Works]

hth,

Chris

--
Blog at:
http://spaces.msn.com/members/cwebbbi/


"Resho" wrote:

Quote:
I know this is not a supported scenario in Analysis Services 2005 but i just
wanted to know if anyone had same requirements and have a solution for it.
Thanks.

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.