group in DBCross

edited June 2015 in FastReport 4.0
I have data in format
person1 | money | first name | last name
person1 | money | first name | last name
person1 | money | first name | last name
person2 | money | first name | last name
person2 | money | first name | last name
person3 | money | first name | last name
person3 | money | first name | last name
person3 | money | first name | last name
person3 | money | first name | last name

I want to get table in that format
person1 | SUM(money) | first name | last name
person2 | SUM(money) | first name | last name
person3 | SUM(money) | first name | last name

I've tried to use DBCross, but I get
person1 | SUM(money) | first name | last name
                       first name | last name
                       first name | last name
person2 | SUM(money) | first name | last name
                       first name | last name
person3 | SUM(money) | first name | last name
                       first name | last name
                       first name | last name
                       first name | last name

It is posible to group by repeated first name, last name and show only once.

P.S. SupperssRepeated doesn't help.

Comments

  • gpigpi
    edited 10:59PM
    It seem better to use two-pass report with TfrxMasterData, TfrxGroupHeader and TfrxGroupFooter bands
    Set height of TfrxGroupHeader and TfrxGroupFooter bands to true, calculate totals of group on the first pass and show it on the second pass

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.