You may be encountering the problem explained in Mosha's blog below, so
see if this small change fixes it:
Quote:
|
with member [measures].[delta] as '
|
IIF(time.currentmember is [time].[januari],
(time.currentmember,[measures].[MTD]),
(time.currentmember,[measures].[MTD]) -
(time.prevmember,[measures].[MTD])'
http://sqljunkies.com/WebLog/mosha/a...1/04/4959.aspx
It is not uncommon to see people trying to write something like
following:
[Account].CurrentMember = [Account].&[Flow]
While the above expression looks very natural, it is completely wrong !
The reason is that AS2000 implementation of operator "=" can only
compare numbers or strings. Therefore the implicit data type conversion
from member object to scalar is applied (I hope to write an article
about MDX data types and type conversions soon) by converting
[Account].CurrentMember to [Account].CurrentMember.Value and converting
[Account].&[Flow]to [Account].&[Flow].Value . So instead of comparing
the member objects, this will compare their cell values !
...
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***