Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Percentage per group Post Reply Post New Topic
Author Message
victoria61485
Newbie
Newbie


Joined: 14 Apr 2010
Online Status: Offline
Posts: 19
Quote victoria61485 Replybullet Topic: Percentage per group
    Posted: 03 May 2015 at 4:39am
Hello,

I have a report that has one group. In this group are two summary fields that show the sum per group of Total Tickets and another that shows the sum per group of Tickets Closed. The closed tickets are a percent of the total tickets and I would like to show what percent the tickets closed are of the total. How can I show this at the group level? Thank you for any help!
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 12 Jun 2015 at 4:24am
If you don't already have an answer for this, try something like this:

if sum({total tickets}, {group1 field}) > 0 then
sum({closed tickets}, {group1 field})/sum({total tickets}, {group1 field}) * 100
else 0

This will prevent "divide by zero" errors and give you the percentage you're looking for.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.