COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: actcognosuser on 21 Jan 2010 02:28:08 PM

Title: how to use calculations from two different queries in a chart?
Post by: actcognosuser on 21 Jan 2010 02:28:08 PM
i need counts which are derived from different rules.They are put in separate queries.But in my chart how do i combine the counts?I want to show one count as
the percentage of the other.
Title: Re: how to use calculations from two different queries in a chart?
Post by: cschnu on 21 Jan 2010 03:13:06 PM
You will need to join the two queries on their related fields to form a third query and then base the chart off the newly created query.
Title: Re: how to use calculations from two different queries in a chart?
Post by: actcognosuser on 22 Jan 2010 08:18:31 AM
Thanks cschnu!

When i join the queries the resulting query is not fetching the right results.I'm getting same values for
the two calculations.(dataitems).

student class count  |total students
                     12         | 12

which is supposed to be 12 and 60.

query 1 -date ,student rank ,year enrolled,student class count
query 2- date,average student rank,year,total student count.
Title: Re: how to use calculations from two different queries in a chart?
Post by: MFGF on 22 Jan 2010 08:28:06 AM
How are you defining the join between the queries?

MF.
Title: Re: how to use calculations from two different queries in a chart?
Post by: actcognosuser on 22 Jan 2010 08:39:54 AM
Inner join on date
Title: Re: how to use calculations from two different queries in a chart?
Post by: MFGF on 22 Jan 2010 08:53:12 AM
Try using cardinality 1..1 -> 1..1

MF.