Error running MDX query

  • Hello,

    I have a cube in my local SSAS instance which I can query through Excel.

    I am getting security error when I attempt to run an MDX query against it.

    My query is very simple one:

    select

    [Measures].[TargetAttainment]

    from [HoursCube]

    Here is the error I am getting:

    Executing the query ...

    Error (Data mining): Either the user, \johns, does not have permission to access the referenced mining model, HoursCube, or the object does not exist.

    Error (Data mining): Either the user, \johns, does not have permission to access the referenced mining model, HoursCube, or the object does not exist.

    Execution complete

    Could anyone suggest how to resolve the issue, please.

    Thanks,

    Peter.

  • Can you try running the following MDX

    select

    [Measures].[TargetAttainment] on 0

    from [HoursCube]

  • I'm not sure if you ever heard back from the asker but this worked for me.

    Thank you!

  • The correct syntax is:

    Select {Measures} ON COLUMNS,

    {Dimensions} ON ROWS

    FROM <<cube_name>>

    WHERE

    (any_slicers)

    Raunak J

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

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