COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: twister on 02 Sep 2013 04:16:20 PM

Title: Cube - Aggregates and Totals in the same line
Post by: twister on 02 Sep 2013 04:16:20 PM
Hello,
I have a crosstab with columns showing different measures. I need to show a summary line of all the measures.

My issue is that some of my measures need to be aggregated (aggregate function)  and some need to be totalled up (total function). How do I mix up these functions in a single line. I thought of having different calculated data items and showing them by defining data contents to "Yes" in individual cells. It doesn't work. Any help would be greatly appreciated?
Title: Re: Cube - Aggregates and Totals in the same line
Post by: MFGF on 04 Sep 2013 05:55:40 PM
Hi,

The title mentions a cube, so I assume this is a dimensional package?

Is it as simple as adding a new query calculation below the final row with the expression aggregate(currentMeasure within set [your set of row members])

Cheers!

MF.
Title: Re: Cube - Aggregates and Totals in the same line
Post by: twister on 05 Sep 2013 10:30:09 AM
Hi MF,
Thanks for the reply. I have created data items for each measure (rather than dragging each measure into the query) and changed rollup aggregations individually and it worked like a magic. Simple thing..had to post this to get a quick answer to meet my deadline....

Thanks...