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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum and Group by

Status
Not open for further replies.

wf

Programmer
Feb 1, 2001
32
US
I want to add a formula to my report that calculates the sum of a premium.

Ex:

PolicyNumber Riesgo Bank Premium
123 1 1 50
123 1 2 50

In the table these are two independent records one of them have 30 in the premium and the other one has 20, so the sum is 25.

In sql I do this query:

Select sum(premium) as premium from xxx group by policynumber, riesgo.

But I don't know how to do that in Crystal Reports.

Thanks.
 
Insert a group by policy.
Select the premium, and insert a subtotal. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top