Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3212

How to get only top 5 rows in ranking in Webi 4.1 if records are duplicating.

$
0
0

I am facing error to get the top 5 rows while applying ranking in webi Report. For ex. my scenarion is like this, i am getting below records by Default:

 

Original Report.png

 

Now if i apply ranking on measure and ranked by Text and i would like to Show only top 5 records i am getting more then that

 

Apply Ranking.PNG

 

AfterRankingResult.PNG

I want only 5 records, if the last record having same value then i Need the very first record based on the Text column. In above Scenario i required only record upto Text = "J".

 

I tried below solution but it is not working.

I created one variable as

rnk = Rank([Measure];([Text]))

 

and then i created another variable as

rcount = RuuningCount ([rnk])

 

and then i place this rcount variable in report

 

AfterRuuningcount.PNG

 

and then i apply filter on rcount :

 

Apply filter.PNG

 

I am getting below result

 

Result.PNG

 

As you can see as per above result, it is incorrect. It is taking the Default set of result (see first screenshot) and then do sorting and take out the first five result.

 

Please let me know the solution for this as i Need only top 5 rows.

 

 

Thanks,

Saif


Viewing all articles
Browse latest Browse all 3212

Latest Images

Trending Articles



Latest Images

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