COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: juffin on 17 May 2014 08:46:34 PM

Title: top 10 and bottom 10 ranks in same report
Post by: juffin on 17 May 2014 08:46:34 PM
How to get top 10 and bottom 10 (say based on Rank in an exam) in the same report ?
Any way to do this report studio ?
Regards
Jf
Title: Re: top 10 and bottom 10 ranks in same report
Post by: navissar on 18 May 2014 12:20:40 AM
Sure. Is this relational or dimensional?
In relational, you can create two queries, both filtered for [rank]<=10, and [rank] is a rank function descending for the top 10 and ascending for the bottom 10. Then union the queries, and you're golden.
Over dimensional you can use the topcount and bottomcount functions for the same effect.
Title: Re: top 10 and bottom 10 ranks in same report
Post by: juffin on 18 May 2014 01:57:25 AM
Thank you... :)