MDX

  • Hi

    I have a product dimension with following attributes:

    [Product Code]

    [Product Display Code]

    [Product Name] (Key)

    [Product Type]

    There is also a hierarchy of [Product Type], [Product Name]

    Using MDX I want to display all members of [Product Display Code] but they must be sorted by Product Type, so I need all the [Product Display Codes] that are of the same [Product Type] to be next to each other.

    Anyone have any ideas as I can seem to figure this out?

    Have have been trying queries like the one below but with no luck.

    SELECT

    NON EMPTY

    { Order([Products].[Product Display Code].members,

    [Products].[Product Type ID].CurrentMember,BASC) }

    ON columns,

    NON EMPTY { [Measures].[Deal Count] }

    ON rows

    FROM [SMart]

    Thanks

  • Using BASC and BDESC will effectively ignore parent hierarchy groupings, so to retain them you should just use ASC/DESC

    Kind Regards, Will

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

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