Solved

Creating a Sum using a running total and a conditional formual

Posted on 2013-05-15
3
291 Views
Last Modified: 2013-05-20
I need to clasify if a case has more than one request associated with it.  I was able to accomplish this through groups and a running total.  The data looks like this

Group a
Request 1
Request 2
   Running total 2

Group B
Request 1
    Running total 1

Group C
Request 1
request 2
Request 3
   Running total 3

Now I want to determine how many cases (groups) have more than one associated request.  I created an if/ then formula based on the running total, but I can't sum this as already includes summary data.  From looking at other posts, I think that I need a variable, but I am unsure how to do this and what forumla(s) I might need.  

I just want a total sum of all cases (groups) that have more than 1 request associated with it.  Any help will be greatly appreciated.
0
Comment
Question by:josslmpd
  • 2
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39169941
Try this

In the report header create a formula
WhilePrintingRecords;
Global NumberVar MoreThan1Count;
""

In the group footer
WhilePrintingRecords;
Global NumberVar MoreThan1Count;
If {#RunningTotal} > 1 then
     MoreThan1Count := MoreThan1Count + 1;
""

In the report footer
WhilePrintingRecords;
Global NumberVar MoreThan1Count;
MoreThan1Count

If you need the total number of cases just add another variable and calculate as you go.

mlmcc
0
 

Author Comment

by:josslmpd
ID: 39171441
Thank you, that worked perfectly.  Do you know of any resources, on this website or others, that explains variables and how to use them?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39171761
I don't have any links readily available here.  I will try to check from home

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now