dbTalk Databases Forums  

Default time member fails in one cube

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


Discuss Default time member fails in one cube in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
madams@lojack.com
 
Posts: n/a

Default Default time member fails in one cube - 04-05-2005 , 02:28 PM






I have a shared time dimension for all of my cubes. The default member
is defined as the latest month for which data appears in the cube's
fact table, as follows:

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

One of my cubes is no longer "seeing" this correctly. The correct
default should be April 2005 but this cube always defaults to January
2005. This wouldn't be so bad, but I use it in a virtual cube that
references Time_Day.Defaultmember.Prevmember. That is causing the cubes
to display full 2004 total sales instead of the most recent full month.

Anyone have any ideas what could be causing this?

Maureen Adams


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

Default Re: Default time member fails in one cube - 04-05-2005 , 02:55 PM






You mentioned using this in a virtual cube. If the virtual cube contains
measures from more than 1 cube, you should explicitly specify an
intrinsic measure from the desired cube in IsEmpty() - do all cubes have
data till April?

Quote:
Tail(Filter([Time_Day].[Month].Members,
NOT IsEmpty([Measures].[SomeCubeMeasure]))).Item(0)
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.