Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Dense Rank version of Rank function does not give consecutive ranking. And my ques. is not why, but how to get consecutive dense rank?

$
0
0

Hello All,

The 3 argument version of Rank() function assigns the same rank to all elements who shares the same value and that is fine.

But after, that does not have +1 rank, but there is always a gap in rank.

This jump from 1 to 4 is not desired output for me.

If someone asks that which are top 2 true elements, answer is Top 1 position is shared by [A,B and C] and 2nd position is D.

Similarly, if someone asks who is at 2nd position, result from MDX says, no one is at 2nd position.

This is just the sample to illustrate my question. In my SSRS report, I am dealing with Top 5,10,15,50,100 or 150.

Please let me know your thoughts how can I generate incremental dense rank using MDX.

Thanks Kindly,

Jai


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>