COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: backhandx on 23 Jan 2017 06:54:07 AM

Title: Sql code generated in Cognos
Post by: backhandx on 23 Jan 2017 06:54:07 AM
 Hi all,

I am executing a report in Report Studio. In the code generated by Cognos, I see that Cognos created 'over partition by' instead of 'Group by'. I am wondering what are the factors which force Cognos to behave like that.
Title: Re: Sql code generated in Cognos
Post by: Kiran P on 24 Jan 2017 07:30:41 AM
Hi

Are you using rank() in your report query?

Thanks
Kiran
Title: Re: Sql code generated in Cognos
Post by: backhandx on 24 Jan 2017 10:35:56 AM
No, I don't.
Title: Re: Sql code generated in Cognos
Post by: rockytopmark on 25 Jan 2017 07:36:39 AM
It might present itself if you have an explicitly defined aggregation in a data item, such as:

total([measure] for [some dimensional attribute])

... rather than just setting the aggregation properties as desired and letting Cognos naturally aggregate, and may also infer if you are working with a list that you haven't grouped it on anything.