![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am running SQL Server 2000 with Analysis Services and Reporting Services. I would like to create a report in RS which contains data in a special date range. The date range is defined by report parameter with the type of DateTime. Now I am trying do build a mdx query which returns all data in the date range. My first attemp was to create a memberfield like: SET [filter] AS '[date].[2005].[12].[1] : [date].[2005].[12].[19] ' Unfortunatly this method creates some problems. First the named dates "2005/12/01" and "2005/12/19" have to exist in my database. Besides, my time dimension contains weeks instead of month. so this way is not possible, unless I am programming a function which is calculating a week number of a date. But this way is not the best one. So I start using the filter() function. But I never got it running correctly. So how do I have to write an mdx-query returnning date between to dates? thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Darren, thanks for your prompt response. I guess, that is an good idea. But I have to time dimensions, one with an week-level and one with a month-level. When I create a list for the parameters out of the cube I will get a something like "19.12.2005 11:11". How can I seperate the week number from this output, without programming an own function? thanks |

| WITH |
![]() |
| Thread Tools | |
| Display Modes | |
| |