Rank Calculated Measure - Jaspersoft Reports Server



I am a user using Jaspersoft Reports server within the NexJ application.


I am trying to create a 'Top 5' or 'Top 10' users for sales.


I created a new calculated measure:

RANK("Sales Amount") 

but it is ranking the blank numbers as 1 and then the highest last (eg. 7234).


I am not sure how I can use RANK function to then filter the report to only display the top 10 ranking sales people.


Any thoughts on this? 




troy.funslow's picture
Joined: Nov 5 2015 - 11:01pm
Last seen: 6 years 8 months ago

1 Answer:

I don't think there's a way to do this with existing calculated fields. However, in JasperReports Server 6.2, we added a Top N filter, which does exactly what you want.  

elizam's picture
Joined: Mar 5 2012 - 9:19am
Last seen: 2 years 2 weeks ago