Solved

Crystal formula

Posted on 2014-01-11
3
412 Views
Last Modified: 2014-01-11
I'm sure this is a simple formula but I can't figure it out

If the amount is greater or equal than 1,500 and less then 4999.99 it should be 5
If the Invoice amount is greater or equal than 5,000 it should be 10

Here what have which only works for the first condition
if {@TotalNet} >= 1500 then 5
else if {@TotalNet} > 5000 then 10
else 0
0
Comment
Question by:Gerhardpet
[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
3 Comments
 
LVL 41

Expert Comment

by:Sharath
ID: 39773509
if {@TotalNet} >= 5000 then10
else if {@TotalNet} > 1500 then 5
else 0
0
 
LVL 41

Accepted Solution

by:
Sharath earned 500 total points
ID: 39773510
Or

if {@TotalNet} >= 5000 then10
else if {@TotalNet} >= 1500 then 5
else 0
0
 
LVL 1

Author Closing Comment

by:Gerhardpet
ID: 39773589
That was easy. Thanks for your help!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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