Link to home
Start Free TrialLog in
Avatar of gcgcit
gcgcit

asked on

Sum if Value is Over Zero

I have a report with the column control source of this:

=IIf([HOURS]-[HoursRemainingDisplay]>0,[HOURS]-[HoursRemainingDisplay],0)

I need to sum that column on my report but only include the values that are over zero in that sum. What would the controlsource field for that be?

(see photo)
Right now where all the zeros displayed in this image are actually are actually storing negative values stored so I don't want them on the sum.


ee-sum.jpg
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gcgcit
gcgcit

ASKER

peter57r: I tried that but when I run the report I get a pop-up box asking for a parameter value for HoursRemainingDisplay and then the total is 0.00 when as you see by the screenshot it should be 37.15.
Avatar of gcgcit

ASKER

peter57r: Sorry I was making a mistake on my end that works!!! Thanks!