SUM(1,MasterData1,1)

edited 10:18AM in FastReport 3.0
;) I am new to FastReports. I have created a program with a group header, a master data band, and a group footer as a test report. I have placed the function
[SUM(1, MasterData1, 1)] in the group footer band. (MasterData1 is the name of my master data band). What I expected from this function was a sum of the number of records in the master data band. Unfortunately, all I get is 0. When I display the master data band (normally hidden), I see the data I expect.

Is there something special that needs to be done to get the SUM function to work in a group footer?

I appreciate any help you can give me. ;)

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:18AM
    you are using the wrong function and improperly

    [SUM(1, MasterData1, 1)]

    [SUM(thiswould be a field or var, MasterData1, 1)]
    to get a sum of the values of that field.

    you want to use the count function.
    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.