dbTalk Databases Forums  

Need to filter out based on ana additional dimension

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


Discuss Need to filter out based on ana additional dimension in the microsoft.public.sqlserver.olap forum.



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

Default Need to filter out based on ana additional dimension - 05-16-2006 , 02:03 PM






Hello All:

I have the following Calculated Member that works with one "Time" dimension
(called As Of Date). However I need to add another "Time" dimension to this
equation (called "Calendar").

The end user will enter 2 dates (a specific date for "As Of Date" & and
Range of dates for "Calendar"). There are 2 requirements here:
1. For a specific "AS OF Date" entered (in psuedocode -- get the MAX(of the
available As OF Date <= date entered). I have been able to get this piece as
below:

iif(
NOT IsEmpty(
([As Of Date].[As Of Dates],[Measures].[Census Count])),
([As Of Date].[As Of Dates],[Measures].[Census Count]),
iif(
[As Of Date].[As Of Dates].Prevmember IS NULL,
NULL,
([As Of Date].[As Of Dates].Prevmember))
)

2. From the "Calendar" date range entered (say "date1" to "date2") I need to
be able to select the date member PRIOR to "date1".

The final result should give me a "sort of CROSSJOIN" of the AS OF Date &
the date1 (prior member).

Anyhelp is greatly appreciated.
--
Thank you,
Ashok G

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.