MDX: Why doesn't level function defaults dimensions to CurrentMember? - 03-17-2005 , 06:51 AM
When you build an MDX expression, we often want to make that expression
relative to the current cell in which this expression evaluates. This is
done by mapping the current cell on a member of a specific dimension (or
hierarchy, to be more precise) with the CurrentMember function. e.g. the
returns the name of the previous member of the current member of the
product dimension. If the system requires a member somewhere and you do
not specify a member but a dimension or hierarchy, the system
automatically uses CurrentMember as its default function. For instance,
in the above example, PrevMember can only be used on a member, but if we
apply it on a dimension, it automatically takes the current member of
that dimension, so we can rewrite the above expression as
But if we repeat this exercise with the Level function (which returns
the level of a specific member, and thus requires a member to operate
on), we see that
works fine, but the 'short notation'
does not work at all... The system complains:
Unable to update the calculated member.
Formula error - cannot bind: unknown member: "[Product]"
Anybody out there who has an explanation for this behaviour?