Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Average
Message
From
17/01/2000 15:48:58
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00318249
Message ID:
00319197
Views:
22
>>I have a field in the detail band that I want the average of in the group footer and summary. I copied the field to the two places and clicked "average" under calculations.
>>
>>The problem is that I don't want to see the decimal places. So I put a format of 999. It doesn't print anything. Not astrisks, not anything. If I don't put a format, it prints the number with all the decimal places. I tried ROUND(gpmper,0) and that doesn't work, either.
>>
>>Any ideas?
>>
>
>Rather than carrying the average per se, perhaps carrying the sum of the values being averaged and the count of items as two discrete values; your average would then be SumOfItems/MAX(CoutOfItems,1); you could then ROUND(), FLOOR() OR CEIL() that to get the integer representation you wanted.

Thanks, but it was much easier just to make the mask bigger. :)

Thanks,

Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform