Ranking with continued sequence

Highlighted
Occasional Contributor

Ranking with continued sequence

Hi Community

 

I have a simple list containing values, but some of them have the same values. So when I rank them, the ranking is quite discontinued. For example, 1,1,3,3,3,6,6,6,6,6,6,6..... but what I want is 1,1,2,2,2,3,3,3,3,3,3,3,....... How to approach it.

 

Thank you.

 

Best, Qianru

5 REPLIES 5
Highlighted
Master Anaplanner/Community Boss

Re: Ranking with continued sequence

@qsong1 

Very common question.

@jasonblinn answers that very nicely in this post.

Unfortunately, it's not a simple use of the RANK function but with all things Anaplan, it's possible!

 


Jared Dolich
Highlighted
Occasional Contributor

Re: Ranking with continued sequence

@JaredDolich Thank you for your answer. I tried to use the suggestion, but I found ISFIRSTOCCURRENCE does not work for mi case, as I do not have a hierarchic dimension.

 

Numbers calculatedSimple Anaplan RankingFinal Ranking
611
332
611
332

 

You see I do not have any dimension here. So I do not know how to put the part of dimension: ISFIRSTOCCURRENCE(Simple Anaplan Ranking, ?). I appreciate any assistance.

 

Best, @qsong1 

Highlighted
Master Anaplanner/Community Boss

Re: Ranking with continued sequence

@qsong1 

Here's one way, which is probably the most expeditious and reliable, also one that can be automated but it does require you to run an action.

We'll create the following:

  • Transaction Module (holds your 1 dimensional module and the values you want to rank)
  • System Module for the transactions
  • A List that contains all the unique values of the value you want to rank
  • An action that creates the list above
  • A system module for the list

 

First, Create the transaction module. You mentioned no dimension so I assumed you  meant its a transaction module with 1 dimension. In this case I chose an arbitrary unique identifier using a sequential number. 

Note: you can see the last line item provides the ranking you want!

Rank1D001.pngRank1D002.png

Secondly we create a system module for the transactions. This follows the DISCO methodology - calculate once refer often. Make sure you create a saved view that only contains the list items. There should be no aggregate values in the list or you will get errors in the next step.

Rank1D005.pngRank1D006.png

Next, we create the List of unique values using the system module we created above. Create an import action to do this and save/rename your action because you will need to run this action everytime you want to reroll the rank. You can add this action to a dashboard to make it easy to access.

Rank1D007.png

Rank1D008.png

Now that we have a list of unique values we can rank them in our system module for the list you created above. Again, use the DISCO methodology and set all summaries to "none".

 

Rank1D003.pngRank1D004.png

As you can see the "Rank" line item contains the right value we want. Last step is to add a line item to our transaction module (or system module) that contains the final rank.

Rank1D001.pngRank1D002.png


Jared Dolich
Highlighted
Occasional Contributor

Re: Ranking with continued sequence

Thank you @JaredDolich . That is awesome. 

Highlighted
Master Anaplanner/Community Boss

Re: Ranking with continued sequence

You bet @qsong1 !

Let me know if this idea works for you!

There are always more than one way to solve these types of problems in Anaplan.


Jared Dolich