dbTalk Databases Forums  

Date Range in MDX

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


Discuss Date Range in MDX in the microsoft.public.sqlserver.olap forum.



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

Default Date Range in MDX - 02-29-2004 , 05:59 PM






I have the following cube set up:

Fact table of dates when our sales people called on each customer.
Time dimension (which has the structure
FinancialYear->Quarter->FinancialMonth->Week->Date)
Grade dimension
Banner dimension

Each customer has a particular banner and grade.

I am trying to return the number of calls for each grade of customer (on
the columns), with the banner the customer belongs to on the rows.

The problem I am having is that I want to be able to return the data for
a given date range - ie user selects a start and end date, and it
returns the summarised data for those dates only.

I am having immense difficulty getting the date range going, so any help
on this would be much appreciated.

Thanks in advance...

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

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

Default Re: Date Range in MDX - 02-29-2004 , 10:59 PM






Don't worry - I've worked it out...

For anyone who is interested, I managed to get it going by creating a
calculated member:
WITH MEMBER [Time].[Relevant] AS
'sum([Time].[StartDate]:[Time].[EndDate])'

and then using this as the slicer dimension...

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