COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Cognos_Jan2017 on 02 Oct 2017 02:47:22 PM

Title: List "Totals" Calculation Problem.
Post by: Cognos_Jan2017 on 02 Oct 2017 02:47:22 PM
Hoping the attached Excel file retains formatting.  Attempted formatting below probably won't retain when this is Posted.

In the example file, cannot get "Overall Totals" Row to Calculate properly.
                     
      AAA                                   BBB                                      CCC                         DDD
                        
      Uses a Case Statement   Uses a Case Statement      Uses a Case Statement   Uses a Case Statement
      to Calculate              to Calculate                      to Calculate              to Calculate
      (B11-A11)/B11              (B11-D11)/B11                      (B11-F11)/B11              (B11-H11)/B11
                        
      All Calculations in Cells C11, E11, G11, and I11 are Correct                  
      The Property Data Item Summary is set to "Calculated"                  

A   B   C      D   E      F   G
37   311   88.10%   155   50.16%   119   61.74%                   = Row 11
47   350   -176.47%   165   -870.59%   135   -694.12%   3   82.35% = Row 12
                        
      All Calculations in Cells C12, E12, G12, and I12 are BAD                  
                        
   Suggestions how to get Correct calculations in Cells C12, E12, G12, and I12                     
                        
   TIA, Bob                  
Title: Re: List "Totals" Calculation Problem.
Post by: Cognos_Jan2017 on 16 Oct 2017 01:10:18 PM
Overall Totals is easy, after some thought ...

Unlocking the "Totals" Cell, then ... writing a Query Calculation of something like ...
(Total([HowManyLocs])-Total([< 1 Year]))/Total([HowManyLocs])

... and adding that to the Cell, then Locking WORKS fine.