Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Calculating a discount in Crystal Formula

Posted on 2015-01-20
4
Medium Priority
?
129 Views
Last Modified: 2015-01-20
I have a price field that I want to use minus a discount

{PRICING.BVRTLPRICE01} - {?Discount %}

{?Discount %} is my parameter which can be from 1-100

This is what I need
If {PRICING.BVRTLPRICE01} = 0.00 then 0.00 else {PRICING.BVRTLPRICE01} - {?Discount %}
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
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Ido Millet
ID: 40560292
{PRICING.BVRTLPRICE01} * (1 - {?Discount %})
0
 
LVL 1

Author Comment

by:Gerhardpet
ID: 40560367
The formula does not work.

Here is a sample I did
60 * (1-50) = 2940 but that should be 30

60 - 50% = 30
0
 
LVL 23

Accepted Solution

by:
Ido Millet earned 2000 total points
ID: 40560418
That means the % is not stored as %.

So use
{PRICING.BVRTLPRICE01} * (1 - {?Discount %}/100)
0
 
LVL 1

Author Comment

by:Gerhardpet
ID: 40560452
That worked. Thanks Ido!
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

604 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