COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: jacknjill on 26 Aug 2008 01:09:37 AM

Title: top10 with filter
Post by: jacknjill on 26 Aug 2008 01:09:37 AM
help anyone.

i am using a cognos8.1 version
data source type dimensional package

i am creating a report that will show the top 10 products based on delivered qty, this will also show details such as sales amount and ranking by qty and amount.

management wants to exclude a certain product from the top 10

i was able to use the rank syntax but when i add in the filter to exclude that certain product it returns no record.

i have tried the topcount and exclude the specific product using the filter and it work well, but i cant seem to add the ranking by qty and amount.

been trying to figure this one out for almost a week.
Title: Re: top10 with filter
Post by: rockytopmark on 26 Aug 2008 09:22:21 AM
TopCount() function will do the trick for you, and embed the filter() function inside the TopCount() to limit the rows.

Online Help and doc on these functions is very good.