COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: generh6957 on 12 Oct 2007 03:17:51 PM

Title: Show only top 10 results
Post by: generh6957 on 12 Oct 2007 03:17:51 PM
I want to show only the top 10 dealers based upon a utilization %. I have the utilization % sorted in decending order, but cant get to only show top 10, tried inserting row numbers, but cant filter on that. 

Title: Re: Show only top 10 results
Post by: rockytopmark on 13 Oct 2007 09:35:19 AM
1). Create a new query calculation, call it "Rank_Util"

2). In the expression for Rank_Util
      a). If the data is accessed via relational model, use the Rank() function on the Utilization%
           
      b). If the data is accessed via PowerCube or Dimensionally Modeled Relational, use
           TopCount() function

3). If Relational, create a summary filter: [Rank_Util] <= 10.  There is no filter needed if you use TopCount with Dimensional.