on 05-20-2016 6:57 AM
Hi Everyone,
i suppress rows greater than 300. serial formula in Crystal report. but when i am total sum of amount this will give me wrong result it give me result of all. but i want just 300 top crystal formula . i am not using any grouping in crystal report. thanks
Hi Safeer,
You can write a formula like :
If rownumber > 300 then 0 else Amount
Now insert your summary based on the above formula.
Note : The condition which you are using to suppress rows, use the same condition in above formula. Also please replace formula fields with appropriate report fields.
Thanks,
Sastry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're using the rownumber function, here's what you can do:
1) Create a new formula field using this code:
If rownumber <= 300 then
Shared numbervar amnt := amnt + {Amount field};
'':
2) Drag and drop this formula field to the details section.
3) Create another formula field to display the Total and place this field on the report footer:
Shared numbervar amnt;
-Abhilash
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.