C O G N OiSe - the COGNOS community  
10 Mar 2010 09:52:52 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: February 8th, 2010 - COGNOiSe.com passes 10,000 registered users.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Question about percentage  (Read 194 times)
lil
Associate
**

Forum Citizenship: +0/-0
Offline Offline

Posts: 2


« on: 21 Oct 2009 10:00:14 PM »

Hi,

I just started using cognos a week ago and I have been trying to come up with a similar report. Could you advise me how I can compute for the percentage in a crosstab report similar to the sample below.
---------------------------------------------
         Q     %   
---------------------------------------------
Total(A)      100   100(formula: (Q/Total(A))*100)
A1
   Total(B)   40   40  (formula: (Q/Total(A))*100)
   B1          10      25     (formula: (Q/Total(B))*100)
   B2          12      30     (formula: (Q/Total(B))*100)
   B3         18      45     (formula: (Q/Total(B))*100)
A2
   Total(B)   60   60  (formula: (Quantity/Total(A)*100)
   B1         15      25     (formula: (Quantity/Total(B))*100)
   B2         21      35     (formula: (Quantity/Total(B))*100)
   B3         25      40     (formula: (Quantity/Total(B))*100)
---------------------------------------------

Thanks a lot!
« Last Edit: 21 Oct 2009 10:05:13 PM by lil » Logged
Thundercat
Associate
**

Forum Citizenship: +0/-0
Offline Offline

Posts: 4


« Reply #1 on: 27 Oct 2009 08:59:59 AM »

Hi Lil, iv'e also just started using Cognos, to do the percentage calculation  you need to add in total rows and then make a data item in query explorer. You can then add in a Calculated member to your crosstab and create the formula using the data items. you don't need to multiply by 100 as you can just set the format to percentage for the column.

 Wink
Logged
lil
Associate
**

Forum Citizenship: +0/-0
Offline Offline

Posts: 2


« Reply #2 on: 27 Oct 2009 07:43:48 PM »


Thank you Thundercat I'll work on it and follow your instructions  Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!