Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional exclusion formula

Status
Not open for further replies.

jlr123

Technical User
Feb 24, 2014
117
US
I have a crystal report that I need to exclude data if condition is met. My formula looks like this but of course does not work. Can you assist me?

{AR_InvoiceHistoryDetail.ItemType} <> "4" and
{AR_InvoiceHistoryHeader.InvoiceDate} = {?Invoice Date Range} and
{AR_InvoiceHistoryDetail.UDF_CC_CODE} = {?CC Code} AND NOT{AR_InvoiceHistoryDetail.UDF_CC_CODE}="OTH")IF (sum({AR_InvoiceHistoryDetail.ExtensionAmt}>0.00)
 
Actually what I need is a summary formula based on two grouped fields.


IF(GroupName ({AR_InvoiceHistoryDetail.UDF_CC_CODE})= "OTH" AND Sum ({AR_InvoiceHistoryDetail.ExtensionAmt}, {AR_InvoiceHistoryDetail.UDF_CC_CODE})< 0) then sum ({AR_InvoiceHistoryDetail.ExtensionAmt}, {AR_InvoiceHistoryDetail.UDF_CC_CODE} else 0.00

If the GroupName({AR_InvoiceHistoryDetail.UDF_CC_CODE})is anything other than OTH then I need the sum({AR_InvoiceHistoryDetail.ExtensionAmt}, {AR_InvoiceHistoryDetail.UDF_CC_CODE}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top