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

Exclude data formula help

Status
Not open for further replies.

jlr123

Technical User
Feb 24, 2014
117
US
Data in report: customer no, invoice no, item,$ amt

I need formula to retrieve all customer no, invoice no, item code and $amount if there is no item code contained in the invoice = "Delivery"
I have tried using Item Code<> "Delivery" but it is not giving me the correct data.
 
I’m guessing that there are multiple records for the same invoice and that you wrongly want to show invoices with no delivery codes. You should have a group on invoice number. Then create a formula {@delivery} in the field explorer->formula editor:

//{@delivery}:
If ucase({table.itemcode})=“DELIVERY” then 1

Then go to report->selection formula->GROUP and enter:

sum({@Delivery},{table.invoiceno})=0

If you want to perform any summaries across invoices (e.g., sum of the amounts of all undelivered invoices), you would need to use running totals, since non-group-selected records are still “in” the report and would be included in the usual inserted summaries.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top