Cross Join Issue

  • Hi All
    Kindly assist with this MDX code.
    Code below

    CrossJoin (
                 filter ([Product].[Main Caption].Children,[Measures].[Contract Rate] <=1 ),
                [Product].[Currency].&[FCY]
            ),
            CrossJoin (
                 filter ([Product].[Main Caption].Children,[Measures].[Contract Rate] <=5 ),
                [Product].[Currency].&[LCY]

    and the following output form PPS desinger

    The Currency lines are distorting the table above. How can I rewrite the code and still get same figures without second column appearing.

    Many thanks.

  • I'm not an MDX guru but, what you posted is not the complete MDX code. The complete statement would include (at least) a SELECT and an ON statement. The "Average Balance" column is being defined ON columns (AKA ON 0). Without the complete MDX query it's impossible to say how we'd remove that column.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

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

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