Skip to Content
author's profile photo Former Member
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)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • 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.

    Add a comment
    10|10000 characters needed characters exceeded

    • V_Rank =Rank([Measure])

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

      add V_Rank and V_Rank Duplicate as header rows

      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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.