COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Topic started by: Maple on 05 Jul 2007 03:22:14 PM

Title: show top 100 records
Post by: Maple on 05 Jul 2007 03:22:14 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: anwar_pat on 09 Jul 2007 01:15:56 AM
you can create a data item of rank([Units Sold]) for your query and add filter condition rank([Units Sold]) <= 100 to fetch top 100 records

Hope it wil help you.
Title: Re: show top 100 records
Post by: praveennb on 26 Sep 2007 02:48:04 AM
topcount function also works





Title: Re: show top 100 records
Post by: damienm on 22 Jan 2008 08:43:04 PM
How would you go about setting this up to prompt the user to enter what the top rank should be, i.e top 25, top 30 etc.
Title: Re: show top 100 records
Post by: biejorrun on 24 Jan 2008 04:41:46 AM
In that case, code your filter like

rank([Units Sold]) <= ?FILTER?