COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Maple on 05 Jul 2007 03:59:36 PM

Title: show top 100 records
Post by: Maple on 05 Jul 2007 03:59:36 PM
i want to rank my report by units sold...also want to show only 100 records....is there any one can help with this...
Title: Re: show top 100 records
Post by: trevorp on 09 Jul 2007 07:53:16 AM
Hi

Try using rank (ie rank the items in the report) then use a filter on the ranking (<101)

Title: Re: show top 100 records
Post by: vijayab on 20 Feb 2009 05:44:26 AM
In the Query create a data item as rank= rank(units sold column)
And in filter rank<=100 and in properties of that filter make it After Auto Aggregation.

Hope it wil help u ..
vijayab
:)
Title: Re: show top 100 records
Post by: GangXiao on 24 Feb 2009 08:29:30 AM
This function sorts a set according to the values of "numeric_exp" evaluated at each of the members of "set_exp", and returns the top "index_exp" members.

Syntax
topCount ( set_exp , index_exp , numeric_exp )