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

Division By Zero 1

Status
Not open for further replies.

brecat77

IS-IT--Management
Feb 27, 2008
28
US
Some help would be extremely appreciated. Her is the formula i have

(1 - (Maximum ({invoice_line.unit_price}, {invoice_line.item_id}) / {p21_view_inv_xref.last_price_paid})) * 100
 
You might try
If {p21_view_inv_xref.last_price_paid} > 0 then
(1 - (Maximum ({invoice_line.unit_price}, {invoice_line.item_id}) / {p21_view_inv_xref.last_price_paid})) * 100
else 0
 
Worked like a charm. Thank you so much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top