dbTalk Databases Forums  

default time member - solve order for a dimension?

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


Discuss default time member - solve order for a dimension? in the microsoft.public.sqlserver.olap forum.



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

Default default time member - solve order for a dimension? - 10-17-2004 , 04:03 AM






I've modified my time dim,
to show the date witch is the last one pupulatet with data .
It works fine in the Foodmart 2000 Cube, and also in a ProClarity sample
cube.

But it won't work in my Cube!

My cube is populated with a lot of calculated measures - so I thougt: maybe
I need a higher solve order for the dim? (the measure works with different
order levels)

has anyone a similar problem and a fix for it?

greetings sequal

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

Default RE: default time member - solve order for a dimension? - 10-18-2004 , 06:47 AM






What do you mean you've modified your time dim? How (using a solve order)?

Try this code as the default member in the time dim.

Tail(Filter([Time].[Month].Members, NOT
IsEmpty(Time.CurrentMember)),1).Item(0)

"sequal" wrote:

Quote:
I've modified my time dim,
to show the date witch is the last one pupulatet with data .
It works fine in the Foodmart 2000 Cube, and also in a ProClarity sample
cube.

But it won't work in my Cube!

My cube is populated with a lot of calculated measures - so I thougt: maybe
I need a higher solve order for the dim? (the measure works with different
order levels)

has anyone a similar problem and a fix for it?

greetings sequal

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

Default RE: default time member - solve order for a dimension? - 10-18-2004 , 07:23 AM



NO NO - not using a solve order, just a simple MDX statmentlike yours:

in FoodMart2000 this one:
Tail(Filter([Time].[Month].Members, NOT IsEmpty
([Time].CurrentMember)),1).item(0)

in the ProClarity SampleCube this one:
(Filter ([Time].[Month].Members, Not IsEmpty ([Measures].[Sales]))
..Item(Filter ([Time].[Month].Members,Not IsEmpty ([Measures].[Sales])).Count
-1).Item (0)).Lag (1)


the last one makes it possible to have a second measure with is populated
(e.g.: a [Measures].[Sales Forecasts]), it will always show the time with the
last [Measures].[Sales] filled month.

so both works fine, but not in my_cube! (and its no miswriting error)
the big differenz between my_cube and the samples cubes is, I have a lot of
calculated measures with different solve orders, so maybe there is a "solve
order time" when the dim is ordered, and maybe I have a measures with is in a
higher order level...

can someone follow me....???



"HWUK" wrote:

Quote:
What do you mean you've modified your time dim? How (using a solve order)?

Try this code as the default member in the time dim.

Tail(Filter([Time].[Month].Members, NOT
IsEmpty(Time.CurrentMember)),1).Item(0)

"sequal" wrote:

I've modified my time dim,
to show the date witch is the last one pupulatet with data .
It works fine in the Foodmart 2000 Cube, and also in a ProClarity sample
cube.

But it won't work in my Cube!

My cube is populated with a lot of calculated measures - so I thougt: maybe
I need a higher solve order for the dim? (the measure works with different
order levels)

has anyone a similar problem and a fix for it?

greetings sequal

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.