home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!smoke!brl.mil!fsbrn
- From: fsbrn@brl.mil (Ferd S. Brundick)
- Newsgroups: comp.databases
- Subject: SUM in Pdox4.0 report
- Message-ID: <19597@smoke.brl.mil>
- Date: 25 Jan 93 14:36:03 GMT
- Sender: news@smoke.brl.mil
- Reply-To: fsbrn@brl.mil
- Organization: Army Research Laboratory
- Lines: 21
-
- I have a simple report in Paradox 4.0 (running in compatible mode)
- that is a group summary table. I used summary fields to calculate
- the sum of each field I am interested in on a per-group basis in the
- group band and overall in the report footer. (The table band is
- empty.) My group subtotals and overall totals are correct.
-
- My question involves percentages. I need to calculate
- Sum(group)/Sum(overall) for each group. I tried Field/Place/Expression
- with SUM([Rev],GROUP)/SUM([Rev]) but SUM([Rev]) is the sum *so far*,
- not the total for all the groups. The first group line is always
- 100%, the last one is always correct, and the ones in between are
- wrong.
-
- I realize I can run a query to calculate the totals, and replace my
- expression with SUM([Rev],GROUP)/[Answer->SumRev]. Does anyone know
- an easier (more efficient, whatever) way to do this? Thanks.
-
- dsw, fferd
- Fred S. Brundick
- USARL, APG, MD.
- <fsbrn@brl.mil>
-