Former Member

# Facing Duplicate issue with Rank Function

Hi All,

I am facing issue with Duplicate value with Rank function.

For e.g: I have one dim called customer group, and their Actual Values which is a measure value. I need to show Top 5 Customer Based on Actuals.

I am using Rank function(V_Rank([Actual];[Customer group];TOP)) to show top 5, but it is given 6 Customers when there are 2 Actual is Same.

See below Screenshot for Reference.

You can see in above screenshot, there are actuals is same 71.79 at 5th level, I am also using the Block level condition to show only 5 Customer (V_Rank in list (1,2,3,4,5)).But based on same Actuals it is showing me 6,

Can any one help me to show only 5 customer,

Thanks & Regards,

Akhil Muley

Capture.JPG (41.3 kB)
10|10000 characters needed characters exceeded

### Related questions

• Posted on Feb 12, 2014 at 12:36 PM

You can do little trick.

V_rank =Rank([Measure])

V_Rank of Ranks =If([V_Rank]=Previous([V_Rank])) Then [V_Rank]+1 Else [V_Rank]

create alerter V_Rank of Ranks greater than 5 ,format it to white color,no border,back ground white.

10|10000 characters needed characters exceeded
• Sateesh Kumar Bukkisham Former Member

V_Rank =Rank([Measure])

V_Rank duplicate =If([V_Rank]=Previous([V_Rank])) Then 1

apply alert on V_Rank Duplicate Equal to 1 , format back ground blue for header and white for rows

Any how rank will continue to the next level if it same .still if you want to format it use alerter or you show them

V_Rank of Ranks=If([V_Rank]=Previous([V_Rank])) Then [V_Rank]+1 Else [V_Rank]

pastedImage_0.png (18.9 kB)
• Posted on Feb 12, 2014 at 11:29 AM

Hi Akhil ,

This is by design .Do you have any condition on which value to show if ranks are same.

10|10000 characters needed characters exceeded
• Former Member

Hi Satish,

Any one out of that repeating 2. but most likely to first repeating one.

Regds,

Akhil Muley

• Former Member
Posted on Feb 12, 2014 at 12:59 PM

A nice workaround from Sathish, but the key is to establish, as was hinted at, if there is a secondary criteria - cricket uses run rate, football uses goal difference as examples if teams are level on points. Do you have a secondary criteria? More importantly, does the end user?