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

Formulas ignoring grouping 1

Status
Not open for further replies.

Ladyazh

Programmer
Sep 18, 2006
431
US
It is just something i have to share with you and beg for help.
My Report contains asks for the formulas where I ned to A.count {MASTER_ID}
and
B.count {BILL_ID}
and
C. count {ORDERS}
and
D. A/B
and
E. {cost}*{qty}
and
F. E/B

Formulas were created. Product Group was inserted BUT formulas are ignoring group. It shows same numbers per product.

Please, help
 
Try posting technical information:

Crystal version
database/connectivity used
Example data
Expected output

If you have existing formulas, post what is in them now.

It sounds liek you need to just place the fields in the details, right click each and select insert summary->then pick the type of aggregate you need, such as sum, count, etc., and specify at the group level.

Cost * qty might be accomplished using:

sum(({table.cost} * {table.qty}), {table.group})

In general you cna manually place formulas in the Group Header or Group Footer using:

count({table.field},{table.groupfield})

Change group to sum or whatever as required.

-k

-k
 
{table.group}, {table.group}, {table.group} is missing link, I think! Thanks so much, I forgot about {table.group}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top