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

If Then selective summarizing

Status
Not open for further replies.

gkrenton

MIS
Jul 2, 2003
151
US
Have a table that has gross qty & gross returns report as either positive or negative numbers. Trying to capture the gross returns as 1 number & the gross qty as another. However
if I use the if slsqty < 0 then sum(slsqty) it gives me the net number - how can I limit this statement to only adding the negative quantity - then the reverse would allow me to get gross sold.
 
Create a formula {@negqty}:

If {slsqty} < 0 then {slsqty} else 0

Create a similar formula {@posqty}:

If {slsqty} > 0 then {Slsqty} else 0

Place these in the detail section and then insert summaries on them.

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top