Solved

Maximum Function to Exclude Zero

Posted on 2014-01-09
6
307 Views
Last Modified: 2014-02-27
I have a formula in my running total that will obtain the maximum value out of the listing.
Sometimes, the only value is a zero. Is there a way I can write the formula to still obtain the maximum value and in cases where the only value is a zero, to exclude it?
0
Comment
Question by:metalteck
  • 2
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39769756
I am not sure what you are trying to do?

Why do you need to ignore the 0 values?

mlmcc
0
 
LVL 34

Expert Comment

by:James0628
ID: 39770685
Exclude it from what?  The report (ie. don't display it), or don't include it in some calculation, or ...?

 James
0
 

Author Comment

by:metalteck
ID: 39772045
The zero values are not needed in the report, but unfortunately, some values have 0. I need them to be excluded from the calculation.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39772064
WHat calculations do you need them excluded from?
FOr instance a SUM would not be affected by the 0 value.  

Is 0 never a legitimate value?

Can values be negative?

If you are concerned about them being part of the maximum calculation then use a formula like

If {Field} = 0 then
    -99999999999
Else
    {Field}

When you take the Maximum of that formula, you can test it to see if the max is -99999999999 and not display it.

mlmcc
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now