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.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 MDX Where Clause (newbie question)

Author  Topic 

siroki
Starting Member

1 Post

Posted - 2008-03-27 : 08:27:38
Hello all,

I would like to generate a result based on a certain date filter. I tried the following code but that did not work. Could anyone please assist. Your help is very much appreciated.


WITH MEMBER [Time].[Date].[blnDate]
AS
(
IIF([Time].[Date] < '2007-01-01', true, false)
)

SELECT [Measures].[NumberOfConsignments] ON COLUMNS
FROM [RevenueDataMart]
WHERE ([Time].[Date].[blnDate])


Kind regards.
   

- Advertisement -