Re: How to identify set (similar as possible)



currentmember always return a member, not a set.

what you don't know is if the dimension is currently used in a set!
using the extract function on a set when you don't know if the set contain
this dimension or not raise an error when the dimension is not here.
try to use the iserror function or convert the set to string and test the
string himself using string comaprison functions.



"igorkov" <igorkov@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CBF79ADB-8CD8-4CDE-A2D1-59CFF7F88A11@xxxxxxxxxxxxxxxx
"Jéjé",

the problem is that you never know either is CurrentMember is a member or
set (lets assume). So i'd like to create a construction something like
this

IIF( [Time].[Fiscal].CurrentMember is set, IsLeaf(Extract.....),
IsLeaf([Time].[Fiscal].CurrentMember)

Thank you.

"Jéjé" wrote:

CurrentMember can be used against 1 dimension only, not against a set.

use the Extract function to extract 1 dimension only from your set, then
use
the currentmember
IsLEaf(Extract(<<my set>>, [Time].[Fiscal]).CurrentMember)





.



Relevant Pages

  • Re: How to identify set (similar as possible)
    ... CurrentMember can be used against 1 dimension only, ... use the Extract function to extract 1 dimension only from your set, ... possible to identify such situation before evaluating IsLeaf? ...
    (microsoft.public.sqlserver.olap)
  • Default Member Property
    ... Im trying to set a default member for a dimension using a MDX expression: ... But if i dont use Currentmember it works fine: ...
    (microsoft.public.sqlserver.olap)
  • Re: About Calculated Members
    ... I tried what you said, but it works only when I filter in that specific dimension or when I show that specific dimension, but the "All Products" returns zero ... you want to test if the actual member is the member you ... > You can't reference to the CurrentMember of a level, ...
    (microsoft.public.sqlserver.olap)
  • Re: About Calculated Members
    ... you want to test if the actual member is the member you ... You can't reference to the CurrentMember of a level, ... to the CurrentMember of the dimension, so, you can use: ...
    (microsoft.public.sqlserver.olap)
  • Re: Actions
    ... Had problems with URL against dimension members...that would only accept one ... > through Analysis Manager, then you may be seeing a known bug with AM. See ... >> Isn't it possible to create an action that brings along currentmember ...
    (microsoft.public.sqlserver.olap)