COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Tsunami on 22 Sep 2011 11:15:08 AM

Title: How to create a summary query from detail query
Post by: Tsunami on 22 Sep 2011 11:15:08 AM
I have a detail query that pulls one salesperson, their customers and their sales for the month.  Now I want to add a summary page that has a list of all salespeople and the total for the month.

I tried creating a second query and postioned the detailed query just to the right of it.  I then only pulled the 'salesperson', and 'total(month)' data items.  This isn't working for some reason.  It just pulls zeros.   Any ideas?
Title: Re: How to create a summary query from detail query
Post by: Arsenal on 22 Sep 2011 11:47:34 AM
It sounds like you need a master (summary)  detail(individual salesperson) type of report in which you would be creating a master detail link on the salesperson id
Title: Re: How to create a summary query from detail query
Post by: Arpitagrawal9 on 23 Sep 2011 07:38:49 AM
you can use the same query itself create a  data item formula to something like Total(Sales) for month and than in your summary report only drag the salesperson name along with this data item which would giving you monthly aggregated values