Prolog Central

Go Back   Prolog Central > Custom Reports Central > Crystal Reports 8.5
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-22-2008, 11:21 AM
prologqueen prologqueen is offline
Junior Member
 
Join Date: Aug 2007
Location: Bowie, MD
Posts: 8
Angry Ignoring null fields in count or average

Please can someone help me with this formula? I've been searching for days on how to get an average of 2 fields while ignoring the "null fields". (ie., the average of (2, null) should be 2 not 1)

I thought by adding the two fields together and then dividing by the count I could get the answer (see below). But I'm running into the same problem where it is counting the null fields. Any ideas?

sum([{@PM Schedule new},{@Super Schedule New}])/count([{@PM Schedule new},{@Super Schedule New}])

Prologqueen
tkaye@bozzuto.com
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:23 AM.


Powered by vBulletin Version 3.5.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Prolog®, ProjectTalk®, and Meridian Systems® are registered trademarks of Meridian Systems, Inc.
PrologCentral.com is an independent message board and is not affiliated with or endorsed by Meridian Systems, Inc.