|
-
Sep 27th, 2005, 06:50 AM
#1
Thread Starter
Frenzied Member
Sum a formula field [RESOLVED]
Hello everybody,
I have a formula field which shows sum of a database field against year and shows records arranged in a group. At the end of each group, I need to show sum of the formula field.
Example:
Mr. ABC
2005 $100
2006 $200
--------------
$300
Mr. XYZ
2005 $500
2006 $600
--------------
$1100
I am unable to show $300 and $1100 and Price is formula field and crystal report does allow me to summarize this field.
Thanks.
Last edited by usamaalam; Sep 29th, 2005 at 12:13 AM.
-
Sep 27th, 2005, 01:46 PM
#2
Re: Sum a formula field
The summary options available on a Formula field depend on its return value.
If Crystal is not giving you the option to "Sum" then the formula's return value is not numeric. Post the formula.
-
Sep 27th, 2005, 11:32 PM
#3
Thread Starter
Frenzied Member
Re: Sum a formula field
This is the formula called forTotal which shows amount in Dollars.
VB Code:
Sum ({Maintenance_ComplaintDetail.Charges}, {@Year})
Another formula called Year is :
VB Code:
Dim strArray() As String
strArray = Split(CStr({Maintenance_Complaint.OrderStartDate}),"-")
Formula = year(cdate(Left(strArray(3),2) & "/" & strArray(2) & "/" & strArray(1)))
Thanks.
-
Sep 28th, 2005, 02:22 PM
#4
Re: Sum a formula field
You cannot Sum a Sum.
Create a new formula for the customer total.
Sum ({Maintenance_ComplaintDetail.Charges}, {Your customer group field})
-
Sep 29th, 2005, 12:12 AM
#5
Thread Starter
Frenzied Member
Re: Sum a formula field
Thanks. Problem is resolved. I sum the field against first group.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|