Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compute a Sparse Average
Message
 
 
To
10/02/2009 15:22:35
Ken Knorr
Logos Management Software
Ventura, California, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01380665
Message ID:
01380828
Views:
52
>Does anyone have a way to compute a average of data in footer bands. Data with value of 0 should not be counted in average.
>
>In other words if data in shown in detail band is 16, 0, 0, 0 the average should be 16 not 4.
>
>Ken

I dunno if it'll work but you can try to convert zeros to NULLs
IIF(myfield=0, CAST(NULL AS I), myfield)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform