Solved

Crystal Report How to Multiply a negative percent

Posted on 2009-04-03
3
864 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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