dbTalk Databases Forums  

MDX: Show me the light..

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


Discuss MDX: Show me the light.. in the microsoft.public.sqlserver.olap forum.



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

Default MDX: Show me the light.. - 06-07-2004 , 04:06 AM






Still cannot see it...

Sentence that works:

SELECT {[Measures].[Budget år],[Measures].[Regn.
åtd.],[Measures].[Restbudg.],[Measures].[Regn.så.sp.],[Measures].[Regn.så.to
t],[Measures].[Åtd / tid],[Measures].[Så.sp / tid]} on columns,
descendants([Organisation].members) on rows FROM BudgetOgRegnskabConjoint
WHERE ([Tid].[2004].[Kvartal 1].[Marts],Delregnskab.[1
Hjemmetjenesten],[StedAktKonto].[All StedAktKonto].[Øvrige
driftsudgifter].[Fælles].[SIK])

Sentence that doesn't:

SELECT {[Measures].[Budget år],[Measures].[Regn.
åtd.],[Measures].[Restbudg.],[Measures].[Regn.så.sp.],[Measures].[Regn.så.to
t],[Measures].[Åtd / tid],[Measures].[Så.sp / tid]} on columns,
descendants([Organisation].[Fælles].[SIK].members) on rows FROM
BudgetOgRegnskabConjoint WHERE ([Tid].[2004].[Kvartal
1].[Marts],Delregnskab.[1 Hjemmetjenesten],[StedAktKonto].[All
StedAktKonto].[Øvrige driftsudgifter].[Fælles].[SIK])

It says cannot bind - unknown dimension or level
[Organisation].[Fælles].[SIK] but that is the name of the level ?

\Michael Vardinghus



Reply With Quote
  #2  
Old   
pryly
 
Posts: n/a

Default RE: MDX: Show me the light.. - 06-07-2004 , 11:36 AM






You did not use the descendants() properly

here is the syntax: Descendants(«Member», [«Level»[, «Desc_flags»]]

You should specify the parent member first


Reply With Quote
  #3  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: MDX: Show me the light.. - 06-08-2004 , 01:42 PM



Thanks

Faelles is father to SIK ... but Faelles also has OKO and Personel as
children.
Alongside Faelles level I have North and South with their corresponding
children.


"Brian Altmann" <anonymous (AT) discussions (DOT) microsoft.com> skrev i en meddelelse
news:CC59F178-53DA-45DB-8B48-8E5B584C059D (AT) microsoft (DOT) com...
Quote:
FYI, after SP3 the syntax is:
Descendants(«Member» | «Set», [«Level»[, «Desc_flags»]])

I'm puzzled though.
If [Organisation] is the dimension and [SIK] is the level, what roles
does [Faelles] play?

Regards,
Brian
www.geocities.com/brianaltmann/olap.html




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

Default Re: MDX: Show me the light.. - 06-08-2004 , 05:47 PM



If [Organisation] is a parent-child dimension, then is [SIK] actually a
member, rather than a level? In that case, is this what you really need:

Descendants([Organisation].[Fælles].[SIK].Children)


From SQL Server BOL>>
In a parent-child dimension, only a single level can be defined (besides
the optional (All) level), but it usually produces multiple levels in
the hierarchy.
Quote:

- Deepak

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


Reply With Quote
  #5  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: MDX: Show me the light.. - 06-09-2004 , 08:21 AM



Think that's it....


"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> skrev i en meddelelse
news:%23D9%23JqaTEHA.2908 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
If [Organisation] is a parent-child dimension, then is [SIK] actually a
member, rather than a level? In that case, is this what you really need:

Descendants([Organisation].[Fælles].[SIK].Children)


From SQL Server BOL
In a parent-child dimension, only a single level can be defined (besides
the optional (All) level), but it usually produces multiple levels in
the hierarchy.



- Deepak

*** Sent via Devdex http://www.devdex.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.