Re: PrevMember is if current member IsEmpty -
08-06-2004
, 11:27 AM
Here is a "unique solution" to your problem. Try this on Foodmart.
- Create a "dummy measure". (Just anything will do) We will use this
as a place holder.
- Create a Calculated Cell
- Define the subcube with the [dummy measure] and the [Time] at Month
level.
- Put this MDX for calculation.
iif(IsNull([Measures].[Units Ordered]),(Tail(filter({lastperiods(7,
[Time].currentmember)}, Not IsEmpty([Measures].[Units Ordered])),
1).item(0).item(0), [Measures].[Units Ordered]), [Measures].[Units
Ordered])
Remember to handle the "aggregation". This would be a semiadditive
measure, so please be careful about that.
HTH |