COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: am65 on 10 May 2010 04:50:51 PM

Title: Define Member Sets
Post by: am65 on 10 May 2010 04:50:51 PM
Anybody ever used the "Define Member Sets" property in queries?

I know they are used when converting an Analysis to a Report but I can't understand very well from the documentation what that is useful for.
Title: Re: Define Member Sets
Post by: rockytopmark on 11 May 2010 01:39:21 PM
Yes.  They are vital when authoring a Report from a Dimensional data source and various drill-down/up challenges are presented when separate levels are employed in the report and they need to follow a drill properly on either/any level.
Title: Re: Define Member Sets
Post by: James_Bonnell on 26 May 2010 08:17:39 AM
They're also helpful to make sure that set expressions aggregate correctly across multiple measures.

E.g.
                                                    Multiple measures
Account1                                       a, b, c
Account2                                       a, b ,c
accountset(account1, account2) =    a+a, b+b, c+c

The last row didn't work for me until I made a Member Set (which I labelled MS accountset, arbitrarily).

Then, this worked: aggregate(currentMeasure within set [MS accountset])

The only tricky thing there is that even though you'll have the Member Set, I couldn't see a way to drag it into the data item... so I dragged [accountset] and edited to add the MS.
Title: Re: Define Member Sets
Post by: am65 on 04 Feb 2011 10:46:09 AM
A bit late but. Thank you.