COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: RAJESH_COGNOS on 20 May 2009 02:43:12 PM

Title: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: RAJESH_COGNOS on 20 May 2009 02:43:12 PM
Hello,
How to convert olympic ranking to dense ranking in Cognos?
Olympic ranking is default but is there a way that I can convert the olympicly ranked records to densly ranked ones.

Thanks
Rajesh
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: Gollapudi on 25 May 2009 04:08:19 AM
Hi Rajesh,

Generally we use Rank([Measure]) to get rank in Report Studio, if you need dense ranking you should say DISTINCT inside the expression as follows.... Rank(distinct [Measure]) Thats it..


Gollapudi.
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: RAJESH_COGNOS on 25 May 2009 10:59:25 AM
Thanks Gollapudi..
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: Gollapudi on 26 May 2009 12:33:03 AM
Your most welcome  :D
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: RAJESH_COGNOS on 26 May 2009 11:17:21 AM
Gollapudi,
I tried using RANK(DISTINCT [MEMBER]) But it didnt help.It is still showing the olympic ranking.
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: Gollapudi on 28 May 2009 06:17:24 AM
What is this Member you have placed in your expression, you just need to put Distinct in your expression which you have created to get the Rank, that will definitely works..
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: RAJESH_COGNOS on 28 May 2009 06:34:25 AM
I created a data item which gets me rank for a member and applied distinct to it.

Anyways I found the answer to it,Using running-count([Member]) will solve the problem.

Thanks for your help Gollapudi.
Thanks
Rajesh
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: Gollapudi on 28 May 2009 07:20:04 AM
How did you get it with Running-Count.. that will give you the kind of Rownumbers but not the ranking on Measure... please check it one more time, if you sort the measure then it could be ok but should not do that, coz in future if the client want you to sort on a perticular diemention then this will be vanished.. care full......
Title: Re: CONVERT OLYMPIC RANKING TO DENSE RANKING.
Post by: Per on 29 Sep 2016 04:53:30 AM
I have a similar question, sorry if its of topic.
I want something equivalent to DBs row_number(): row_number() over(partition by attribute order by attribute1 DESC, attribute2 DESC)