If you are unable to create a new account, please email support@bspsoftware.com

 

How can I use total function for a member.(source : TM1 / Cognos 10.2.1)

Started by ersin.gulbahar, 13 Nov 2014 03:41:13 AM

Previous topic - Next topic

ersin.gulbahar

Hi experts,
I set expression like this :

filter ( levels([my].[hierarchy].[here],3) ,caption(parent(currentMember([my].[hierarchy].[here]))) ='TEST' )

(name is MyItem)


it works as I expect.

But I want to  get its total measure. So If I use total(MyItem) it gives error.

How can I solve this?

thanks in advance

MFGF

Quote from: ersin.gulbahar on 13 Nov 2014 03:41:13 AM
Hi experts,
I set expression like this :

filter ( levels([my].[hierarchy].[here],3) ,caption(parent(currentMember([my].[hierarchy].[here]))) ='TEST' )

(name is MyItem)


it works as I expect.

But I want to  get its total measure. So If I use total(MyItem) it gives error.

How can I solve this?

thanks in advance

How about:

aggregate( currentMeasure within set filter ( levels([my].[hierarchy].[here],3) ,caption(parent(currentMember([my].[hierarchy].[here]))) ='TEST' ))

MF.
Meep!

ersin.gulbahar

Thanks for answer,
should I write it in data item or query calculation ? When I write in data item it gives error invalidmx ...

thanks in advance

MFGF

Quote from: ersin.gulbahar on 13 Nov 2014 06:18:10 AM
Thanks for answer,
should I write it in data item or query calculation ? When I write in data item it gives error invalidmx ...

thanks in advance

What is the error?
Meep!

ersin.gulbahar

Error is :

XQE-GEN-0010 Found an internal error "XQERuntimeException": XTM-ERR-003 The MDX query submitted to TM1 server failed during execution. The TM1 error code is  InvalidMDXExpression.