COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: missspeedy23 on 07 Oct 2015 03:51:06 AM

Title: Percentage of rows rather than columns
Post by: missspeedy23 on 07 Oct 2015 03:51:06 AM
Hi all, newbie to the forum here.

Can anyone help with this issue that I'm having with percentages. I want a calculation to show a percentage of a value in a row, not of the column (in green).

For example:

                              Not Started   Preparing   Submitted   Total      % not started   % preparing    % submitted
Service Area 1             266                78             328          672              40%                12%                49%
Service Area 2                2                   0                 1              3              67%                   0%                33%

So the individual rows add back to 100%, not the columns.

I'm probably missing something completely obvious here!
Title: Re: Percentage of rows rather than columns
Post by: BigChris on 07 Oct 2015 04:15:05 AM
I would probably do that as new calculated columns, PercentageNotStarted = [Not Started] / [Total] etc.
Title: Re: Percentage of rows rather than columns
Post by: missspeedy23 on 07 Oct 2015 04:25:19 AM
I did try that but for some reason it wasn't returning the correct results. I'll have another shot and play around with the aggregation methods.
Title: Re: Percentage of rows rather than columns
Post by: BigChris on 07 Oct 2015 08:38:18 AM
Did you manage to get it to work for you?