简体   繁体   中英

Crystal report-how to not sum suppressed field

I got a invoice that need to suppress the data if the item-code is not match my suppress condition, then I have to do a running total on the line total!

I don't know what is the formula to sum only the field where suppressed is false.

My current formula is below, I wonder can I "If the LineTotal is not suppressed, then sum the linetotal else 0"

IF {OITM.ItmsGrpCod} = 112 then
   sum ({INV1.LineTotal})
else 0

This my invoice, because this is the Haulage Copy, so we don't want show them the item price of each item.

Best way to achive this requirement is to:

Create the running total for all `item - code' and write a supress condition for the section to supress the code which doesn't need to display.

your idea of summing only if not supressed will complicate the report , So try the way suggested

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM