Solved

Crystal formula

Posted on 2014-01-11
3
372 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
  • 2
3 Comments
 
LVL 40

Expert Comment

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

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…

758 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

24 Experts available now in Live!

Get 1:1 Help Now