Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Var calculation average problem
Message
De
31/10/2022 15:00:30
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01685179
Message ID:
01685183
Vues:
59
>>I am trying to figure out how to create a report var calculation an average value but avoiding records where the value of the field is o. How can I do this?

AVERAGE FOR allows you to filter records by an expression, so try something like
AVERAGE myfield to myvar for myfield <>0
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform