Grouping and summing in FastReport 3.0

edited 10:46PM in FastReport 3.0
Hi, I'm having this problem:

I have the following structure:

PageHeader
GroupHeader1(<frxDBDataset1."A">+<frxDBDataset1."B">+<frxDBDataset1."C">)
GroupHeader2(<frxDBDataset1."A">+<frxDBDataset1."B">+<frxDBDataset1."C">+<frxDBDataset1."D">
MasterData (ItemNo, Price)
GroupFooter1
GroupFooter2

I'm getting what I want till that step:

A, B, C

D 00001
item1 $xxxx.00 item2 $xxxx.00 item3 $xxxx.00 item4 $xxxx.00

D 00002
item1 $xxxx.00 item2 $xxxx.00 item3 $xxxx.00 item4 $xxxx.00

D 00003
item1 $xxxx.00 item2 $xxxx.00 item3 $xxxx.00 item4 $xxxx.00


But now I need to have a summary like this:

item1 total: $yyyyy.00
item2 total: $yyyyy.00
item3 total: $yyyyy.00
item4 total: $yyyyy.00
Total : $ zzzzz.00

And I haven't been able to group such sums.

I have the information on one single query, but couldn't make it work, so I've made several queries and tried to make subreports but I couldn't make them work either.

Do you have any ideas ?

thanks,

Rene

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.