COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Tseug on 22 Jan 2010 08:41:18 AM

Title: Percentage of field with several possible values
Post by: Tseug on 22 Jan 2010 08:41:18 AM
Hello!  I have a list report that one particular column will contain either 'Y', 'N', or 'N/A'.  I need to display the percentage of each response based on the total responses.  Is there a consolidated way to do this?

Thank you in advance.
Title: Re: Percentage of field with several possible values
Post by: MFGF on 22 Jan 2010 09:08:44 AM
Hi,

Assuming there is another column which is unique in the list (Staff Code for example), you could try the following:

Add a calculation called Response Percent with the expression count([Staff Code] for [Your Y/N/NA Column]) / count([Staff Code] for report)

Format this as percentage.

Does this give you what you need?

MF.