If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Excluding 0's while averaging in Crystal Reports

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
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?
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On