COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: cjsasaki on 15 Feb 2016 10:39:46 AM

Title: Calculations Between Cross Tab Totals
Post by: cjsasaki on 15 Feb 2016 10:39:46 AM
Hi

I have made a crosstab and I want to know how to make a calculation between 2 Totals (2 different levels).

I have something like this :

                  Ciclo 1   Ciclo2
Total                     152   128
Ejecutado   Total          108   64
   Blocked            39   
   Error                    31   1
   Inprogress      1
   Passed           38   62
No Ejecutado   Total    44   64
                       44   64

I want to calculate "Total 152/Ejecutado Total 108"
Title: Calculations between rows of cross tab
Post by: cjsasaki on 17 Feb 2016 09:50:23 AM
Hi

I have a Cross Tab that looks like this :
                  |  Date1 |    Date2  |
-------------------------------------------------------------
Planned     |     4      |    5         |
-------------------------------------------------------------
Executed   |     3      |    5         |
-------------------------------------------------------------
%             |     75%  |    100%   |
-------------------------------------------------------------
Passed      |     2      |    4         |
-------------------------------------------------------------
Fail            |      |      |     1        |


How can I do a calculation like :  Executed/Planned  and Executed/Planned .

Can this be done?
Title: Re: Calculations between rows of cross tab
Post by: BigChris on 19 Feb 2016 02:04:08 AM
Could try putting in a footer and unlocking the report, then add into the footer something along the lines of:

total([Executed] for [Date]) / total(Planned] for [Date])
Title: Re: Calculations Between Cross Tab Totals
Post by: BigChris on 19 Feb 2016 02:06:42 AM
total([Name] for [Category]) / total ([Name])
Title: Re: Calculations Between Cross Tab Totals
Post by: MFGF on 19 Feb 2016 09:24:15 AM
There appeared to be two virtually identical posts asking the same question here, so I have merged them into a single thread. Please do not double-post questions.

MF.