COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: ari_meta on 08 Mar 2010 11:54:54 PM

Title: ranking in report
Post by: ari_meta on 08 Mar 2010 11:54:54 PM
Hi all

  I want to fine out top 3 product lines according to number of quantity got sold month wise.

any idea

Thanks

Ari
Title: Re: ranking in report
Post by: MFGF on 09 Mar 2010 05:17:36 AM
Create a list report with Month, Product Line and Quantity as columns.  Group on the Month column.  Add a Query Calculation to your report called Rank with the expression rank([Quantity] for [Month]) then filter on this with the expression [Rank] <= 3

MF.
Title: Re: ranking in report
Post by: ari_meta on 12 Mar 2010 04:10:51 AM
Thanks , it works