dbTalk Databases Forums  

Select Multiple - Infinite recusion situation

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


Discuss Select Multiple - Infinite recusion situation in the microsoft.public.sqlserver.olap forum.



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

Default Select Multiple - Infinite recusion situation - 06-09-2006 , 03:35 PM






Help Again:

I posted yesterday and I seemed to have resolved the local cube
problems by using AS2005...

However I have a new question today...

I have this situation where I am trying to divide by the number of
members in a dimension. I am using this code as a calculated member
(from MDX Solutions).

count(crossjoin({[Measures].[Base]}, descendants([Media Date
Cub].[media Date].currentmember,[Media Date Cub].[Media Date].[Media
Date])),excludeempty)

The media date dimension contains 7 days...

The problem is this code only works if I select all the days or just
one of the days...if I select two or three of the days in the browser I
get an error...

Any Ideas?

Willy


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Select Multiple - Infinite recusion situation - 06-09-2006 , 06:19 PM






I assume you are trying to select multiple members in the page filter,
Mosha has written an extensive article here on how to make your MDX
multiselect friendly here:

http://sqljunkies.com/WebLog/mosha/a...iselect_friend
ly_mdx.aspx

Something like the following should work:


Count(
NonEmpty(
EXISTING [Media Date Cub].[media Date]
,([Measures].[Base])
)
)


--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1149885353.049567.23870 (AT) i39g2000cwa (DOT) googlegroups.com>,
willrich33 (AT) yahoo (DOT) com says...
Quote:
Help Again:

I posted yesterday and I seemed to have resolved the local cube
problems by using AS2005...

However I have a new question today...

I have this situation where I am trying to divide by the number of
members in a dimension. I am using this code as a calculated member
(from MDX Solutions).

count(crossjoin({[Measures].[Base]}, descendants([Media Date
Cub].[media Date].currentmember,[Media Date Cub].[Media Date].[Media
Date])),excludeempty)

The media date dimension contains 7 days...

The problem is this code only works if I select all the days or just
one of the days...if I select two or three of the days in the browser I
get an error...

Any Ideas?

Willy




Reply With Quote
  #3  
Old   
willy
 
Posts: n/a

Default Re: Select Multiple - Infinite recusion situation - 06-09-2006 , 09:48 PM



Thanks Darren:

That did exactly what I needed to do...the link was great too.

Willy


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.