COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: qaz56 on 25 Aug 2016 07:53:06 AM

Title: aggregation or sum
Post by: qaz56 on 25 Aug 2016 07:53:06 AM
Hi,
in my crosstab i have column with number and precentage like

              quantity   cal1    % of X
product1  3000      14    40%
product2  2000      4      20%
sum         5000      18    60%

problem is in sum row. When used aggregation is SUM quantity and cal1 is ok, but % not.
When used aggregation is AGRETATE then % is ok, quantity and cal1 not (sum row display first value from column).

How avoid that?
Title: Re: aggregation or sum
Post by: MDXpressor on 15 Sep 2016 06:22:36 PM
You can override the contents of any cell in your list.  With the cell for  sum% selected, go to the properties pane under the General section and change define contents to 'Yes'.  Then you can drop in any calculation you want.
Title: Re: aggregation or sum
Post by: AnalyticsWithJay on 16 Sep 2016 08:01:07 AM
When you set it to AGGREGATE, you are telling it to use whatever property is set in the cube/model.

Try the following aggregates:
Quantity: Sum
Calc1: If this is a calculation, set it to 'Calculated', otherwise set it to Sum based on your post.
%: Calculated

If you're still having issues, try assigning Solve Order in case your order of calculations is impacting the logic. You can assign any number. Just make sure Quantity is first, then Calc1, then %.