Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Maximum Function to Exclude Zero

Posted on 2014-01-09
Medium Priority
341 Views
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
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
• 2

LVL 101

Expert Comment

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

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

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 101

Accepted Solution

mlmcc earned 2000 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

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. …
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…
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
###### Suggested Courses
Course of the Month11 days, 17 hours left to enroll