COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: ersin.gulbahar on 18 Nov 2014 06:19:13 AM

Title: How can I make two member as one? (source : TM1 / Cognos 10.2.1)
Post by: ersin.gulbahar on 18 Nov 2014 06:19:13 AM
Hi ,
I have 2 member. And I want to make them one item and calculate measures according to it. Please look at the image which is attached .
Title: Re: How can I make two member as one? (source : TM1 / Cognos 10.2.1)
Post by: Lynn on 18 Nov 2014 07:30:36 AM
You could try this expression for your C element.

aggregate ( currentMeasure within set set ( [A], ) )
Title: Re: How can I make two member as one? (source : TM1 / Cognos 10.2.1)
Post by: CognosAnalytics on 19 Nov 2014 02:56:35 PM
Hello Ersin.gulbahar,
You can use this expression to create a member..I have used A,B and C as members in your screenshot..

member(
<Measure item that you need to total>,
'C',
'C',
<HIERARCHY FOR MEMBERS A AND B>
)

Then add the set of member A and B i.e. SET([A],) in your slicer for the query.

Hope it helps,
-Cognos810