Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: solomon sackey
  Where is solomon sackey?
 texas
 Texas - United States
 solomon sackey
Subject: RE: SUM VALUES EXCLUDING -VE VALUES
Thread ID: 187253 Message ID: 187254 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Reports and Printers
Date: Saturday, August 2, 2008 12:39:45 PM         
   



> Dear Expert,
>
> I'm listing values in a report writer.
>
> However where the outcome of the value is negative, it should be replaced with a zero
>
> and the final total should treat the value as such.
>
> The value is based on the summation of 4 fields ie (allow1+allow2+allow3+allow4)
>
> If the summation of allow1+allow2+allow3+allow4 is negative the value in the report should be zero in the listing,
>
> and the group total should treat -ve values as zero in the summation.
>
> How do I treat this issue in the report writer?
>
>
> Thanks

use IIF(Allow1<0,0,allow1) whereever you have allow1. Same for the others.

Regards
Tushar

ENTIRE THREAD

SUM VALUES EXCLUDING -VE VALUES Posted by solomon sackey @ 8/2/2008 12:36:36 PM
RE: SUM VALUES EXCLUDING -VE VALUES Posted by tushar @ 8/2/2008 12:39:45 PM
RE: SUM VALUES EXCLUDING -VE VALUES Posted by solomon sackey @ 8/2/2008 12:46:17 PM
RE: SUM VALUES EXCLUDING -VE VALUES Posted by tushar @ 8/2/2008 1:06:07 PM
RE: SUM VALUES EXCLUDING -VE VALUES Posted by solomon sackey @ 8/2/2008 1:30:43 PM
RE: SUM VALUES EXCLUDING -VE VALUES Posted by tushar @ 8/2/2008 2:06:51 PM