Solved

Creating a Sum using a running total and a conditional formual

Posted on 2013-05-15
3
289 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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. …
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

18 Experts available now in Live!

Get 1:1 Help Now