Focal Point
[CLOSED] Row Counts

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1127049006

March 25, 2011, 02:42 PM
redapple
[CLOSED] Row Counts
Thanks in advance for any insight provided.

I need to create a report with 6 fields.

The first five fields are all BY fields. Namely, School_1, Grade, School_2, Service_1, and Service_2. The sixth is a DETAIL field and contains Student_Name.

Boring so far huh?

I have a requirement to provide a count of students who have common values in the BY fields. Similar in appearance to a sub-total.

I can't use a subtotal without a sum field, but I have nothing to sum.

Any ideas?

Thanks again.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.11
Developer Studio on Windows XP. Server Components running on Windows Server 2003.
Excel, HTML, PDF
March 25, 2011, 03:41 PM
rfbowley
This is fairly simple actually. Create a defined field:

DUMMY_FLD/I5 = 1;

Now you have something to SUM. Since you probably do not want this to appear in your report, you can NOPRINT it and use the ST.DUMMY_FLD in a SUBFOOT.


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
March 25, 2011, 06:04 PM
FrankDutch
or you can do a multiverb query




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7