Depends on whether you're using AS 2000 or AS 2005, and what kind of MDX
queries the client app generates. With As 2005 and Excle 2003, this kind
of calculation could work:
Quote:
|
With Member [Measures].[ClosingOrders] as
|
([Measures].[Order Quantity],
Tail(Existing [Date].[Date].[Date]).Item(0).Item(0))
select {[Measures].[Order Quantity],
[Measures].[ClosingOrders]} on 0
from [Adventure Works]
where {[Date].[Calendar].[Month].&[2004]&[4],
[Date].[Calendar].[Month].&[2004]&[6]}
----------------------------------------------------
Order Quantity ClosingOrders
28,027 140
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***