I am not getting the results I need....the scoop
The Table is called MLedger. I have the report groups of (Institution/SecType/CUSIP) so the lowest level group is CUSIP. For each record on MLedger, a Db column called, {MLedger.CurMktValue}, is split into to seperate fields on report, one being "Long" and the other "Short" and the formulas are very basic,
IIF ({MLedger.SUFlag} = "U", {MLedger.CurMktValue} ,0 )
IIF ({MLedger.SUFlag} = "S", {MLedger.CurMktValue} ,0 )
I then have a group summary which totals Long and short formulas above by CUSIP (lowest group level).
From these summaries, I need to find the greater of total long or short (by CUSIP) and produce this in a running total or report footer summary.
The example that you gave me perhaps needs further definition...here is the literal of your formula that is not giving the desired result.
maximum([Sum ({MLedger.CurMktValue}, {MLedger.CUSIP}, {MLedger.SUFlag} = "S"

, Sum ({MLedger.CurMktValue}, {MLedger.CUSIP}, {MLedger.SUFlag} = "U"

])
I am trying to add a condition and the sum can't be created...
Thanks