dbTalk Databases Forums  

Default Members Problem

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


Discuss Default Members Problem in the microsoft.public.sqlserver.olap forum.



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

Default Default Members Problem - 08-28-2003 , 05:59 PM






Hi,

I am using the following syntax for a default member in the time
dimension.

Tail(Filter([Period].[445].[Month].members,[Period].[445].currentmember.properties("Complete")="Y"))

I wanted to default our Time dimension on the month that is complete.
The above syntax is accepted - but in the cube - doesn't execute it.

I tried another method -
default member:
{Tail({(Tail([Period].[445].members).item(0).item(0))} +
Filter(LastPeriods(7,Tail([Period].[445].members).item(0).item(0)),Not
IsEmpty([Measures].[Data Flag])))}
Did not avail.

Eventhough - Both of these work fine as Named Sets...
And I have run out of thoughts. Can you help?

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

Default Re: Default Members Problem - 08-29-2003 , 04:01 AM






Can you explain this .
its is not clear
"I wanted to default our Time dimension on the month that is complete. "
"Harsh" <creative (AT) mailcity (DOT) com> wrote

Quote:
Hi,

I am using the following syntax for a default member in the time
dimension.


Tail(Filter([Period].[445].[Month].members,[Period].[445].currentmember.prop
erties("Complete")="Y"))
Quote:
I wanted to default our Time dimension on the month that is complete.
The above syntax is accepted - but in the cube - doesn't execute it.

I tried another method -
default member:
{Tail({(Tail([Period].[445].members).item(0).item(0))} +
Filter(LastPeriods(7,Tail([Period].[445].members).item(0).item(0)),Not
IsEmpty([Measures].[Data Flag])))}
Did not avail.

Eventhough - Both of these work fine as Named Sets...
And I have run out of thoughts. Can you help?



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

Default Re: Default Members Problem - 08-29-2003 , 01:14 PM



Well, our months are flagged as "complete" everytime they are tallied.
I just wanted the time dimensions to default on that month.

You can see the syntax above.

Thanks

Reply With Quote
  #4  
Old   
Jim Kaiser
 
Posts: n/a

Default Re: Default Members Problem - 08-29-2003 , 04:46 PM



Did you try:
Tail(Filter([Period].[445].[Month].members,[Period].[445].currentmember.prop
erties("Complete")="Y")).item(0).item(0)
?
I use the following with success:
tail([ValuationDate].children,1).Item(0).Item(0)
Jim

"Harsh" <creative (AT) mailcity (DOT) com> wrote

Quote:
Hi,

I am using the following syntax for a default member in the time
dimension.


Tail(Filter([Period].[445].[Month].members,[Period].[445].currentmember.prop
erties("Complete")="Y"))
Quote:
I wanted to default our Time dimension on the month that is complete.
The above syntax is accepted - but in the cube - doesn't execute it.

I tried another method -
default member:
{Tail({(Tail([Period].[445].members).item(0).item(0))} +
Filter(LastPeriods(7,Tail([Period].[445].members).item(0).item(0)),Not
IsEmpty([Measures].[Data Flag])))}
Did not avail.

Eventhough - Both of these work fine as Named Sets...
And I have run out of thoughts. Can you help?



Reply With Quote
  #5  
Old   
Harsh
 
Posts: n/a

Default Re: Default Members Problem - 08-29-2003 , 08:57 PM



Thanks a lot. That worked.

Now I have the second piece of my puzzle...

Conditional default.
Default on the Complete month normally.
But Default on Aggeregate (All level) in case the hierarchy is switched.

Reply With Quote
  #6  
Old   
Jim Kaiser
 
Posts: n/a

Default Re: Default Members Problem - 09-05-2003 , 03:36 PM



What do you mean by "... hierarchy is switched"?

"Harsh" <creative (AT) mailcity (DOT) com> wrote

Quote:
Thanks a lot. That worked.

Now I have the second piece of my puzzle...

Conditional default.
Default on the Complete month normally.
But Default on Aggeregate (All level) in case the hierarchy is switched.



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.