dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Date Filtering - sqlserver-olap

This is a discussion on Date Filtering - sqlserver-olap ; What is the best way to create a custom set that only returns dates past Jan 1 2008? Our date ids are INT and formatted like 20080101. I have created this MDX statement but it doesn't return dates past Jan ...



Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-14-2008, 01:06 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Date Filtering

What is the best way to create a custom set that only returns dates
past Jan 1 2008? Our date ids are INT and formatted like 20080101. I
have created this MDX statement but it doesn't return dates past Jan 1
2008.

FILTER([Retained To Create Date].[Date].[Date Name].Members,[Retained
To Create Date].[Date] >= [Retained To Create Date].[Date].[Date
Name].&[20080101])

Is there a better function than FILTER to do this? We're running SSAS
2007 SP2. Thanks.
Reply With Quote
  #2  
Old 11-14-2008, 01:07 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Date Filtering

On Nov 14, 10:06*am, Nate wrote:
> What is the best way to create a custom set that only returns dates
> past Jan 1 2008? *Our date ids are INT and formatted like 20080101. *I
> have created this MDX statement but it doesn't return dates past Jan 1
> 2008.
>
> FILTER([Retained To Create Date].[Date].[Date Name].Members,[Retained
> To Create Date].[Date] >= [Retained To Create Date].[Date].[Date
> Name].&[20080101])
>
> Is there a better function than FILTER to do this? *We're running SSAS
> 2007 SP2. *Thanks.


Sorry... running SSAS 2005 SP2.
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 06:42 AM.