Ken,
Thanks for your responce!
Ok, it's a little confusing because I didn't write all details. I am going to exlain everything from the beginning.
I suppressed duplicates by writing a formula in details section under suppress:
WhilePrintingRecords;
If {C_ILSOBG.SO} = Previous ({C_ILSOBG.SO}) and {C_ILSOBG.ITEM} = Previous ({C_ILSOBG.ITEM}) and {C_ILSOBG.SO_LINE}=Previous ({C_ILSOBG.SO_LINE})Then true
After that I have to get totals for every group. I created 3 formulas with variable to do that:
****************************
Reset formula, in a group header(as you said):
WhilePrintingRecords;
if OnFirstRecord = false then
CurrencyVar RunningTotal2:=0
else
RunningTotal2:={tablename.field name}
******************************
Evaluate formula, in details:
WhilePrintingRecords;
CurrencyVar RunningTotal;
//check if duplicate
If Previous ({tablename.field name }) = { tablename.field name } Then
RunningTotal :=RunningTotal
else
RunningTotal:=RunningTotal + { tablename.field name }
****************************
Display formula, in a group footer:
WhilePrintingRecords;
CurrencyVar RunningTotal
************************
Forget about "Duplicates by group" I fix it.
Thanks for telling me to create a separate set of 3 formulas for each group, it's working now.
I also need to have a Grand total, should I create the smae set of 3 formulas for that?
Thanks a lot,
Stella