I have a report for which I want to calculate some totals, and don't
know how to put together the proper equations to do that.
The individual records include fields GID, Cat, and Actual.
The report is grouped on GID (Grant ID) and Cat (Category). I have the
report calculating the sum for Actual in the footer for Category. There
are two categories, N (Non-Personnel) and P (Personnel). Each category
has a maximum billable, NPAmt and PerAmt, respectively. (Each grant has
a single value for each maximum; those values are repeated in every
record, hence available for use in calculations.
In the footer for the category, I show, in addition to Sum(Actual), the
appropriate maximum, and then the lower of the two figures as the amount
actually billed for that category.
I would like to have an accurate grand total billed for each grant, but
need to compare the individual subtotals against the appropriate max,
rather than comparing Sum(Amount) for the whole grant agains the sum of
the category maximums. The calculation would be on the order of:
Min(Sum(Amount) for category N,NPAmt) + Min (Sum(Amount for category P,
PerAmt).
Any help on the syntax for this calculation would be greatly
appreciated.
Sigurd Andersen
Posted by: sigurd@solbakkn.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Tidak ada komentar:
Posting Komentar