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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If GroupName not starts with then sum

Status
Not open for further replies.

jlr123

Technical User
Feb 24, 2014
117
0
16
US
Basically, I am trying to sum a field in Crystal and it is not working. I am placing it in the Report Footer. If the groupname SalespersonNo is not like ZZ* then sum the extension amount.
if not ((GroupName ({AR_Customer.SalespersonNo})like "ZZ*")) then Sum ({AR_InvoiceHistoryDetail.ExtensionAmt}, {AR_Customer.SalespersonNo})

Can someone tell me what is wrong please?

Thanks so much.
 
It gives me total of 0 and should be a value > than 0. But this is not urgent now. thanks.
 
Using a Group formula in the report footer won't work.

One option is to use a running total summing the Extension Amount, evaluating on the formula:
Code:
Not{AR_Customer.SalespersonNo} like "ZZ*")

Altenratively, create a formula like the following, and use a Summary to sum it:
Code:
If 	Not ({AR_Customer.SalespersonNo} like "ZZ*") 
Then 	{AR_InvoiceHistoryDetail.ExtensionAmt}

Hope this helps

Cheers
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top