Solved

Crystal Report How to Multiply a negative percent

Posted on 2009-04-03
3
867 Views
Last Modified: 2012-05-06
Hello Everyone,

I am working on a report and have a formula which will calculate a goal amount.  This is the formula
({#LYSales} + ({#LYSales} * {@goalpercent}))

This works fine, the problem is when @goalpercent is a negative percentage.... it will just calculate it as a positive percentage.
How can I calculate it as a negative percentage???

Thanks,

Bill

Thanks,

Bill
0
Comment
Question by:bjennings
3 Comments
 
LVL 17

Accepted Solution

by:
MIKE earned 400 total points
ID: 24062341
Try this:

if (({#LYSales} + ({#LYSales} * {@goalpercent}))) <0
  then ({#LYSales} + ({#LYSales} * {@goalpercent})) *-1
    else ({#LYSales} + ({#LYSales} * {@goalpercent}))
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24062426
How do you know it isn't calculating correctly?

mlmcc
0
 

Author Closing Comment

by:bjennings
ID: 31566360
Pefect!  Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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