MDX Query Help

Hi,

I created a Calculated measure in cube something like this : ([TransType].[TransTypeHierarchy].[TransTypeCategoryParent].&[SPEND],[Measures].[Transaction Amount]). To get only spend transactions. Now, I want to slice this measure with same hierarchy to find the amount distribution across different transaction types under spend transaction. But this query behaving like the measure doesn't have relation with measure.


you can think this as below query:

WITH
MEMBER SPEND AS ([TransType].[TransTypeHierarchy].[TransTypeCategoryParent].&[SPEND],[Measures].[Transaction Amount])
SELECT NON EMPTY {SPEND} ON 0
,NON EMPTY ([TransType].[TransTypeHierarchy].[TransTypeCategoryParent]) ON 1
FROM [CUBE]

Please help, how do i make it right?

thanks in advance.

July 27th, 2015 11:44am

Hi,

is TransType dimension is a parent child dimension?

Regards,

Manish

Free Windows Admin Tool Kit Click here and download it now
July 28th, 2015 3:01am

HI,

i request you to  if possible please convert your query in AdventureWorks

Regards,

Manish

July 28th, 2015 3:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics