Re: Percentage at group level of Crystal Report.
- From: "Briscobar" <youcant@xxxxxxxxxxxxxx>
- Date: Fri, 13 May 2005 09:54:18 -0400
In news:GESge.1836$3%4.1598@xxxxxxxxxxxxxxxxxxxxxxxxxx,
Phil Hellmuth <billort@xxxxxxxxxxx> rambled:
> I have three fields on a Crystal report (v9.0), FieldA, FieldB and
> FieldC. FieldC is a formula field, dividing FieldA by FieldB. At a
> group level, I sum the values of FieldA and FieldB, but am at a loss
> as to how to create a group level value for FieldC, where I'd like to
> perform the same calculation on the group level sums for FieldA and
> FieldB.
>
> Any help would be greatly appreciated.
To elaborate on Iain's reply, you'll want to use an aggregate function
(probably SUM, but I guess it all depends on what you're actually trying to
do). Create a summary field (right click the field, choose subtotal) in the
group footer for FieldA. Do the same for FieldB. Then, create a new formula
that does the same calculation as FieldC, but use the aggregate fields. So
your new "percentage formula" will look like this:
//PercentageFormula
SUM(FieldA, GroupField) / SUM(FieldB, GroupField)
HTH.
--
KB - MCNGP "silent thug" #26
Briscobar AT gmail DOT com
You can check out Kat's hawt pics...er, pic...at www.mcngp.com.
.
- References:
- Percentage at group level of Crystal Report.
- From: Phil Hellmuth
- Percentage at group level of Crystal Report.
- Prev by Date: Re: Percentage at group level of Crystal Report.
- Next by Date: Re: Change Report Title at Design Time
- Previous by thread: Re: Percentage at group level of Crystal Report.
- Index(es):
Relevant Pages
|
|