Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dm2003
Starting Member
1 Post |
Posted - 2011-01-29 : 04:54:41
|
Hi i am having a database with date & time dimension separately. Data has granularity of 1 min. I need data based on filter like from 2001-01-12 12:02:20 to 2001-01-20 22:22:20. I created the below mdx query for that. Here date range is working fine but it is giving data only for selected time limit and not considering time range. SELECT [Measures].[Value] ON COLUMNS, ([Dim Date].[Date Key].[Date Key].ALLMEMBERS * [Dim Time].[Time Key].[Time Key].ALLMEMBERS ) ON ROWS FROM ( SELECT ( [Dim Time].[Time Key].&[00:00] : [Dim Time].[Time Key].&[16:39] ) ON COLUMNS FROM ( SELECT ( [Dim Date].[Date Key].&[20110107] : [Dim Date].[Date Key].&[20110110] ) ON COLUMNS FROM [Performance])) Any one plz help on this.Thanks in advance |
|
|
|
|