
Using Formulas
20.1 Formulas overview
In many cases, the data needed for a report already exists in database table fields. For example, to
prepare an order list you would place the appropriate fields on the report.
Sometimes, however, you need to put data on the report that does not exist in any of the data fields.
In such cases, you need to create a formula. For example, to calculate the number of days it takes to
process each order, you need a formula that determines the number of days between the order date
and the ship date. Crystal Reports makes it easy for you to create such a formula.
20.1.1 Typical uses for formulas
There are many uses for formulas. If you have a need for specialized data manipulation, you can do it
with a formula.
Creating calculated fields to add to your report
To calculate a price discounted 15%:
Crystal syntax example:
{Orders_Detail.Unit Price}*.85
Basic syntax example:
formula = {Orders_Detail.Unit Price}*.85
Formatting text on a report
To change all the values in the Customer Name field to uppercase:
Crystal syntax example:
UpperCase ({Customer.Customer Name})
Basic syntax example:
formula = UCase ({Customer.Customer Name})
2012-03-14415
Using Formulas
What are the upsides of contracting skilled web optimization organizations? Expert search marketing companies utilize teams of experts focused on elevating your site's content for browsing engines. This encompasses researchingsearch phrases, adjusting on site characteristics, and managing off-domain enhancements. Moreover, these firms monitor adjustment in from Google parameters and refresh the text on your website as needed. This saves both you your time and your workers from unwanted a
Securing the security of your home is essential in today's unsettled times. Among the best ways to safeguard your belongings and peace of mind is by committing in a trustworthy safe. Regardless of whether you're securing money, important documents, or precious heirlooms, a safe gives a protected repository solution. Regarding selecting the right safe for your house, there are several elements to consider. Above all, assess your safety requirements. Determine what items you plan to store in
Arranging an open-air wedding in Phenix and anxious about the unpredictable weather? Don't let Mother Nature rain on your parade – truly! At [Event Rentals Phoenix], we provide stunning wedding tent rentals that will ensure your distinctive day goes off without an hitch. Our wedding tent rentals are created to supply both charm and functionality. Say "I do" under tha elegant canopy of one of our tents, surrounded by your loved ones and tha breathtaking scenery of Pheonix. With one assortmen
In both personal and professional situations, encountering issues is unavoidable. However, mastering productive trouble-shooting techniques is key for triumphing over hurdles and accomplishing success. In this piece, we delve into the strategies and methods for efficiently addressing dilemmas. From analytical thinking to creative brainstorming, we look into various approaches that can help individuals tackle challenges with certainty and accuracy. Effective challenge solving begins wit
Hello, im noob :)