I had asked a similar question in another post I created, but I've since got new requirements i'm having trouble with.
I essentially need to add the rows in green to my dataset by editing the MDX below.
I got it to work if it's just 1 column but can't figure it out for more than 1. The 4 commented out columns break my query:
WITH MEMBER [Divisional Sales Branch].[DivisionalSalesBranch].[All Branches] AS AGGREGATE ( { ( // [Invoice Date].[Date].[All], // [Invoice Date].[Relative Date].[All], [Divisional Sales Branch].[DivisionalSalesBranch].[All] ) } ) SELECT NON EMPTY { [Measures].[Sales], [Measures].[GP Dollars], [Measures].[GP Pct] } ON COLUMNS, NON EMPTY UNION ( {([Divisional Sales Branch].[DivisionalSalesBranch].[All Branches])}, { ( // [Invoice Date].[Date].[Date].allmembers * // [Invoice Date].[Relative Date].[Relative Date].allmembers * [Divisional Sales Branch].[DivisionalSalesBranch].[DivisionalSalesBranch].allmembers ) } ) ON ROWS FROM ( SELECT ( { [Invoice Date].[Relative Date].&[Last Invoice Date] } ) ON COLUMNS FROM [Model])
Thank you for anyone that can help !