Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find the average but excl. null vales from the total # r
Message
From
03/12/2001 10:58:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00588731
Message ID:
00588736
Views:
25
>I've got a report that has an expression that finds the sum of a few fields (in the detail band) and at the end of the report I want the average of the vertical results (summary band). At present it gives me the average incorrectly as it includes 0 values in the total number of records. It should be the "sum of the records/total no. records (excluding 0.0 values)". How can I get the average excluding the records that contain 0.0 values?
>Thanks
>Max

Average on an expression like :

iif(myField=0,.null.,myField)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform