MDX question about a measure from a dimension

  • hi

    if i create a measure from a dimension and have that dimension on the rows, it works, but 1) the All isn't summed and 2) if i take it off the rows, it gives zero values

    with member [measures].[test]

    as

    strtovalue([Deals BOID].[Deal Rate].CurrentMember.properties("Key"))

    select

    [measures].[test] on columns,

    Nonempty

    ({

    [Deals BOID].[Deal Rate].members

    //[CCY Pair].[CCY Pair].members

    }) on rows

    from

    [BRS2]

    if you toggle the commented line from Rate to CCY, it goes wrong

    so my question is...

    I think I have this wrong in my head, how come the [All] member populate with the sum of the values

    And...more generally, how do i create a measure from a dimension, but make it aggregate?

  • Hi

    try this:

    [font="Tahoma"]

    WITH MEMBER [measures].[test]

    AS SUM ( Existing ([Deals BOID].[Deal Rate].[Deal Rate].members )

    , strtovalue([Deals BOID].[Deal Rate].CurrentMember.properties("Key"))

    //, Cint ( [Deals BOID].[Deal Rate].CurrentMember.membervalue ) -- membervalue can be a float, numeric type..

    )

    SELECT [measures].[test] ON COLUMNS,

    Nonempty ({ [Deals BOID].[Deal Rate].members

    //[CCY Pair].[CCY Pair].members

    })

    ON ROWS

    from[BRS2][/font]

    Regards Kees

  • nope

    does the same i'm afraid

    i've done it a different way now and it works as long as (strangely) i have something on the rows

    will give to the users for testing and will start a new thread if this isn't enough

    thanks

  • Hi,

    how did you solve this problem. I am facing similar problem. I want to display dimension value as a measure, but i don't want use that dimension on my axis. I am getting all 0's or "unknown".

Viewing 4 posts - 1 through 3 (of 3 total)

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