Click to See Complete Forum and Search --> : Top N Record. How to control N through parameter


baijuthakkar
March 13th, 2005, 05:04 PM
Hello everybody,
Can anybody help regarding controlling the TOP N Record through Parameter. Means if i select Record count = 10 then report will only list Top 10 Customer.

baijuthakkar
March 14th, 2005, 12:49 PM
Hey no one came across this problem ...of controlling the TOP/Bottom Record through parameter. Its something like this...... I want Top 100 Customer based on sales. But what i need too is All Customer Based on sales. So instead of posting two report i can do the same two report into one if i can controll the number of records for TOP/BOTTOM through parameter

baijuthakkar
March 15th, 2005, 02:57 PM
Hello everyone.....
If you dont understand the problem...please comeback and let me know....But atleast leave some feedback on this query. Common please share with me your years of experience.

baijuthakkar
March 17th, 2005, 03:57 PM
hello K.BABU...common come up with some idea? cant you control the recordnumber or groupnumber function in special function throught parameter... someone should definately have clue to this problem...

Madhi
March 18th, 2005, 05:53 AM
Use a Formula @Count having the code
Numbervar s;
whileprintingrecords;
s:=s+1;
Now goto section expert of details section and in the suppress option there is a button labelled x-2. click that button and write this code

if {@Count}>10 then true

baijuthakkar
March 22nd, 2005, 05:42 PM
First of all thanx Madhi for your help. Will this work for Group footer(GF) or group header (GH) too. As i have displayed my GF result and suppress the detail section. So what i want is to control the records in my group footer through parameter.

Thanx
Thakkar

baijuthakkar
March 24th, 2005, 05:39 AM
Crystal Version X1 support this feature. controlling N through parameter. If any one have other ideas to do so in version 8.5 please let me know asap. My data is in Group Footer 4 i.e. i have 4 groups and displaying only the group footer 4.

Thanx
thakkar

Madhi
March 24th, 2005, 06:16 AM
What are you showing at the group footer.
Can you post sample data?

baijuthakkar
March 24th, 2005, 02:27 PM
What i have in detail is my sales data from the Month Table---->which is then group by product----->then by ------>department------>then by customer.
I am showing the Grand total of all the customer in the group footer.

something like this
GH3--CUSTOMER
GH2--Department 1
GH1--Product X
Detail section Month Jan --------1000 SUPPRESS
Month Feb-------- 2000 SUPPRESS
GF1 Total for Product X----------3000 SUPPRESS
GF2 Total for Department 1----3000 SUPPRESS
GF3 TOTAL FOR CUSTOMER Mr--3000 - Want to control no. of top
customer displayed through parameter


Hope you get hang of it what i want.


Thanx

Thakkar

Madhi
March 25th, 2005, 12:16 AM
Try this

Place the fomula @count at GF3 and in the section suppress event write the code

if {@ParameterValue}< {@Count} then true

baijuthakkar
March 31st, 2005, 02:44 PM
Thanx
Madhi its working the way i want to.
But on top of this one more help if you can. Actually it does read all the data and works while printing. so no improvement on performance side. Is it possible that only the data brought back from the server is the no. of records we selection and not all by default.