Search code examples
mdxpentaho

MDX Using Member_Key


I'm trying to write a query which uses order in the Pentaho Schema Workbench program.

A simple query I pulled from Saiku analysis's GUI runs without issue. enter image description here

Trying to add in an order yields the message "No function matches signature '.Member_Key'" enter image description here

How would I got about debugging this? All the examples I see online for ordering data use CurrentMember and Member_Key so I'm a little lost.


Solution

  • I found this page online which shows how to access intrinsic properties through Mondrian MDX.

    Instead of [DimTime.CalendarYearMonth].CurrentMember.MEMBER_KEY you write [DimTime.CalendarYearMonth].CurrentMember.Properties("MEMBER_KEY")