Hi,
I am using crystal reports 10.0. I am generating a report in which I have to show only the top 5 records(depending on the count) out of a large number of records. I achieved displaying top 5 records by selecting the Group sort expert from Record menu. But, the problem is that the individual column totals which is generated by CR 10.0 is still of the total records and not that of the 5 records which are displayed. Please help me show the total of the displayed records only.
Thanks and Regards,
Raj
The report looks something like this:
Policy Name Accepted Expired Total
Test1 2 3 5
Test2 2 3 5
Test3 2 3 5
Test4 2 3 5
Test5 2 3 5
-----------------
Total 20 30 50
------------------
U can see that the total shown is wrong since it is showing the total of all the records. I want the total row to be as:
Total 10 15 25
I dont think writing a formula as sum(Accepted) would help as i have tried it and its giving the same total.
Please give me the solution as soon as possibleOriginally posted by rajdotme
Hi,
I am using crystal reports 10.0. I am generating a report in which I have to show only the top 5 records(depending on the count) out of a large number of records. I achieved displaying top 5 records by selecting the Group sort expert from Record menu. But, the problem is that the individual column totals which is generated by CR 10.0 is still of the total records and not that of the 5 records which are displayed. Please help me show the total of the displayed records only.
Thanks and Regards,
Raj
The report looks something like this:
Policy Name Accepted Expired Total
Test1 2 3 5
Test2 2 3 5
Test3 2 3 5
Test4 2 3 5
Test5 2 3 5
-----------------
Total 20 30 50
------------------
U can see that the total shown is wrong since it is showing the total of all the records. I want the total row to be as:
Total 10 15 25
I dont think writing a formula as sum(Accepted) would help as i have tried it and its giving the same total.
Please give me the solution as soon as possible
Hi,
Validate in Detail Format Section using with "RecordNumber" value is <= 5 (variable value).
yours friendly,
K.Babu|||Hi,
Thanks for the Reply. Could u please tell me the exact location where to change. I still couldnt find it.
Thanks and Regards,
Raj|||Hi rajdotme,
Use the formulae given below
Formula1 {@.Reset}
whileprintingrecords;
NumberVar x:=0;
NumberVar y:=0;
NumberVar z:=0;
Formula2 {@.Accepted}
whileprintingrecords;
Numbervar x:=x+{Table.Accepted}
Formula3 {@.Rejected}
whileprintingrecords;
Numbervar y:=y+{Table.Rejected}
Formula4 {@.Total}
whileprintingrecords;
Numbervar z:=z+{Table.Total}
Now, Place Formula1 in the group header and suppress it
Place other formulae in the group footer
Madhivanan
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment