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

Math Question

Status
Not open for further replies.

metalteck

MIS
May 10, 2006
54
US
I'm trying to create a calculated field, to get a percent and then query by the result of the percent.

In Crystal 8.5, I wrote this for my formula:
(lpadj/lpchgs)*100

I put this field in my report and then run it. I then use the select expert to query anything less than 5%, but it always gives me a divsion by zero error. I have tried to eliminate any value that may equal 0 in these two fields, but I still get the error. Can someone help.

thank you
 
Hi,
You cannot use a computation that has not been done to restrict data from the database...The 2 fields have no values until the data is actually returned from the source..







[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Change your formula to:

if lpchgs <> 0 then
lpadj % lpchgs

Then you could use a GROUP selection formula:

{@yourformula} < 5

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top