Solved

Maximum Function to Exclude Zero

Posted on 2014-01-09
6
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 35

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

752 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