COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: iulian.bobalca on 24 Aug 2007 02:58:44 AM

Title: Pie chart from 2 queries
Post by: iulian.bobalca on 24 Aug 2007 02:58:44 AM
Hi!

I have a report that looks like this (two different queries with 2 totals):

Q1             Q2
total1         total2

How can I represent as a pie chart their proportions ( total1=100% , total2 = ? )

Thanks
Title: Re: Pie chart from 2 queries
Post by: Suraj on 24 Aug 2007 09:27:34 AM
Create another query that joins those two and use that to generate pie chart.
without a join or union you can not bring those together.
Title: Re: Pie chart from 2 queries
Post by: iulian.bobalca on 27 Aug 2007 07:10:39 AM
Thank you, Suraj! I solved things with a join.
Title: Re: Pie chart from 2 queries
Post by: iulian.bobalca on 30 Aug 2007 02:00:01 AM
Hello again!

Actuallly I have another problem with summaries (as you see, I'm not the sharpest tool in the box with ReportNet): what if total2 is a count distinct and I want to make a calculation based on those two summaries

Q1             Q2              Calc
total1         total2          calcVal
(total)        (count dist)  (total1/total2)


Thank you!
Title: Re: Pie chart from 2 queries
Post by: Suraj on 04 Sep 2007 01:20:25 PM
you should be able to do this with a calculated item in the joined query.
Title: Re: Pie chart from 2 queries
Post by: iulian.bobalca on 06 Sep 2007 02:19:46 AM
Solved it : not as hard as I first thought, but, again, not very easy either :).  Thanks for the post anyway.