User Tools

Site Tools


tally_set_total_calculation_times_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== TALLY (set total calculation times) ====== Previous pageReturn to chapter overviewNext page

TALLY( points )

blk2blue.jpg

TALLY Specifies when to calculate an AVE, CNT, MAX, MIN, or SUM.
points A comma delimited list of the labels of the DETAIL and/or BREAK structures on which to calculate the total.

The TALLY attribute (PROP:TALLY) specifies when to calculate an AVE, CNT, MAX, MIN, or SUM. The appropriate total is calculated each time any of the DETAIL structures named in the points list prints, or in the case of a BREAK structure, when the group break occurs.

Example:

CustRpt REPORT,AT(1000,1000,6500,9000),THOUS

Break1   BREAK(LocalVar),USE(?BreakOne)

Break2    BREAK(Pre:Key1),USE(?BreakTwo)

          HEADER,AT(0,0,6500,1000),USE(?GroupHead)

           STRING('Group Head'),AT(3000,500,1500,500),FONT('Arial',18)

          END

Detail     DETAIL,AT(0,0,6500,1000),USE(?DetailOne)

           STRING(@N$11.2),AT(6000,1500,500,500),USE(Pre:F1)

          END

         END

         FOOTER,AT(0,0,6500,1000),USE(?BreakOneGroupFoot)

          STRING('Group Total:'),AT(5500,500,1500,500)

          STRING(@N$11.2),AT(6000,500,500,500),USE(Pre:F1),CNT,TALLY(Break2)

         END

        END

       END

CODE

OPENCustRpt)

CustRpt$?Pre:F1{PROP:Tally,Break1} = ?BreakOne  !Change the TALLY to Break1

tally_set_total_calculation_times_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1