Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Filtering a sub-total

edited May 2008 in General
I have an unusual requirement to filter a sub-total. The overall
query includes the field TransType which can have the values of
H and P. The report GROUPS on another field and the sub-total
cannot include records with a TransType of 'H'; only TransType of
'P'.

The grand total includes all records.

Not sure how to approach this!

Thank you...

Todd

Comments

  • edited May 2008
    Hi Todd,

    If you are calculating the subtotals in the group footer, you can try making
    the calculation manually using a TppVariable component rather than the
    DBCalc. Inside the OnCalc event of the variable, place the logic to check
    the TransType and only increase the total value for type P. The DBCalc can
    remain at the end of the report.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.