Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Creating a Sum using a running total and a conditional formual

Posted on 2013-05-15
3
Medium Priority
?
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 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 101

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

609 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