Hi Parsis,
Here's a sample AS 2005 MDX query for Adventure Works, which lists
monthly orders and cumulative orders for a particular promotion, but
only for months with orders:
Quote:
|
With Member [Measures].[CumulativeOrders] as
|
iif(IsEmpty([Measures].[Order Quantity]), NULL,
Sum(YTD([Date].[Calendar].CurrentMember),
[Measures].[Order Quantity]))
select {[Measures].[Order Quantity],
[Measures].[CumulativeOrders]} on 0,
Non Empty [Date].[Calendar].[Month].Members on 1
from [Adventure Works]
where [Promotion].[Promotions].[Promotion Category].&[Reseller].&[New
Product].&[14]
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***