• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

Percentage calculation in crystal report

How to get a percentage from the following fields.

I have the followings formula field

{@Customers - Active} = if {arcust.custstat} = "a" then 1  
{@Customers - YTD} = if {arcust.ldate} in yeartodate then 1

I need the percentage of YTD active customers.
1 Solution
If those are the formulas then you can try

       Sum({@Customers - YTD}) / Sum({@Customers - Active} )  * 100

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now