COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: a1003520 on 22 Nov 2016 01:50:25 PM

Title: Aggregation in report studio
Post by: a1003520 on 22 Nov 2016 01:50:25 PM
Hi Pls I have a sample data (Multiple rows) like this in a query in Cognos report studio:

Name           City           Amount           Job
John             Lyon            200             Teacher
Paul             London         400             Sailor
Paulie           Tokyo          700             Runner
John             Lyon            200             Teacher
Paul             London         400             Sailor
Paul             London         400             Sailor
Paul             London         200             Sailor
Paulie           Tokyo          700            Runner
Paulie           Tokyo         700             Runner
Paul             London         400             Sailor

How can I get the following information (Distinct aggregation) (What code/Statement can I use)
Paulie           Tokyo          700             Runner
Paul             London         400             Sailor
John             Lyon            200             Teacher
Title: Re: Aggregation in report studio
Post by: dougp on 22 Nov 2016 03:33:02 PM
Change the value of the "Auto Group&Summarize" property to Yes.
Title: Re: Aggregation in report studio
Post by: a1003520 on 22 Nov 2016 05:04:59 PM
autogroup and summarize didnt work
Title: Re: Aggregation in report studio
Post by: dougp on 22 Nov 2016 05:49:53 PM
Can you reproduce the problem using one of the samples models and upload the report spec?
Title: Re: Aggregation in report studio
Post by: MFGF on 23 Nov 2016 06:46:36 AM
Quote from: a1003520 on 22 Nov 2016 01:50:25 PM
Hi Pls I have a sample data (Multiple rows) like this in a query in Cognos report studio:

Name           City           Amount           Job
John             Lyon            200             Teacher
Paul             London         400             Sailor
Paulie           Tokyo          700             Runner
John             Lyon            200             Teacher
Paul             London         400             Sailor
Paul             London         400             Sailor
Paul             London         200             Sailor
Paulie           Tokyo          700            Runner
Paulie           Tokyo         700             Runner
Paul             London         400             Sailor

How can I get the following information (Distinct aggregation) (What code/Statement can I use)
Paulie           Tokyo          700             Runner
Paul             London         400             Sailor
John             Lyon            200             Teacher

Can you tell us how this query is defined? You didn't manually code it as SQL, did you?

MF.