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:
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
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
and then i apply filter on rcount :
I am getting below result
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