COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: cognos.cognosbi@gmail.com on 19 Oct 2011 01:25:33 AM

Title: show total revenue divided by top 5 revenues
Post by: cognos.cognosbi@gmail.com on 19 Oct 2011 01:25:33 AM
i have a list report with some columns.example.Product Type,Product Line,Revenue.i want to show total revenue divided by top 5 revenues.for this we should use rank function.how can achieve this.

Thanks in advance.

Thanks
Cool
Title: Re: show total revenue divided by top 5 revenues
Post by: annareddy on 24 Oct 2011 03:23:10 AM
hello cool,
I have taken the Product line,product type,Revenue in list report
go to Query explorer, select the query 1
go to insertable objects and drag the dataitem in query1.
rank ([Revenue]) and change the dataitem name Rank.
rank data item drag the Detail filter,will give the Expression
[Rank]<=5.

will show the only top 5 records ...