IIF syntax for dimensions

  • Hi.

    I was just wondering what the proper syntax was when using the (MDX) immediate if when working with dimensions.

    I want to calculate a value depending on a certain dimension attribute value as such;

    IIF(Dimension.Attribute = "MyValue", 100, 0)

    However the above syntax doesn't seem to be working for me. Can you actually have a calculated measure evaluating a dimension attribute like this?

    Thanks.

  • I worked it out for anyone that needs to know...

    IIF(Dimension.Attribute.CurrentMember.Name = "MyValue", 100, 0)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply