Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Posts
    1

    Excluding 0's while averaging in Crystal Reports

    I am trying to perform a group average in Crystal Reports 9. I need to exclude the 0's for the average. Can any help me on this?

  2. #2
    Join Date
    Apr 2003
    Location
    Sunny Southern California
    Posts
    1

    Re: Excluding 0's while averaging in Crystal Reports

    Using a Running Total should work.

    In the Summary Section, choose the field with the zeros and the type of summary would be "average".

    In the Evaluate Section, choose "Use a formula" and click on the formula icon. Enter the following formula: {your fieldname} <> 0

    In the Reset Section, choose "On change of group" and select the group you're using for the average.

    Click "Ok" and drop the Running Total into the Group Footer

  3. #3
    Join Date
    Jan 2013
    Posts
    1
    Hi K6Scorpion,

    I'm having the exact same issue mentioned above. I followed your directions above but am getting an error on the formula. Originally 'The remaining text does not appear to be part of the formula.' So, based on other online references, I prefaced with '//'. This allowed me to save without error, but it didnt return any results in my preview.
    Thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •