Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ranking in Top N report for a Cross Tab

Status
Not open for further replies.

geo40

MIS
Jul 19, 2002
23
EU
I'll make a TOP 10 report in the CrossTab. I know that I can put the following formula in my report :

WhileReadingRecords;
NumberVar TEST =: TEST + 1;

Issue:

I have 40 records from a specific field with a amount. Now I want the TOP 10 amounts. After I put mentioned formula in my report I press the button Top N ( N=10), I got indeed 10 records, however the ranking isn't 1 to 10, but for example 12,2,27,33,14,15,7,23,39,32 ( that's clear to me because the 12th record has the biggest amount )

Who knows the trick to get a real TOP 10??





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top