COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: roxy on 31 Aug 2012 08:25:02 AM

Title: Population Pyramid chart in Cognos
Post by: roxy on 31 Aug 2012 08:25:02 AM
I have been asked to create a chart commonly known as "population pyramid" (male, female by age group). This chart can be done in Excel.
Can it be done using Report Studio?

I appreciate your help  :)
Title: Re: Population Pyramid chart in Cognos
Post by: leojzamboni on 06 May 2013 12:58:56 PM
Yes, it can be done.

In your query, create two different measures, one for male quantity and another for female quantity. One of them must be calculated to become a negative value.

Use the cumulative bar chart and add the two measures on the primary axis (do not use standard measure). Add the ages categories on the Y axys. Once one of them is negative, it will be displayed on the other side of the zero scale. To finish, format the label of the y axis to not display the negative symbol.