Print Page | Close Window

Running totals on Actuals Data

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20074
Printed Date: 28 Apr 2024 at 11:30am


Topic: Running totals on Actuals Data
Posted By: akcho
Subject: Running totals on Actuals Data
Date Posted: 02 Oct 2013 at 3:08am
Hi,

I'm currently on Crystal Reports 2008 and I have a situation where I'm looking to setup Running Totals for each month but to reference another data set.
 
In the example below, I've created the Actuals list but need help with the Cumulative List creation which as part of the running totals needs values from the Actuals List. I believe I'll need to use "previous" value in conjunction with group by in order to get running totals for each month but I am not sure how to syntax this. 

Actuals List
Month         Count
Oct                  1
Nov                 2
Dec                 2
Jan                  3
etc..

Cumulative List
Month          Count
Oct                 1 (Oct Actuals)
Nov                3 (Cum Oct + Actuals Nov)
Dec                5 (Cum Nov + Actuals Dec)
Jan                8 (Cum Dec + Actuals Jan)

Thank you for your help in advance!



Replies:
Posted By: kostya1122
Date Posted: 02 Oct 2013 at 6:26am
if you group on month
you could try to use summary like
count(actual,month) + count(cumulative,month)




Posted By: akcho
Date Posted: 02 Oct 2013 at 8:53am

Thank you for the reply. How would I go about syntax that to include running totals? Would I use the Running Totals function or independently create my own using formulas?

Thank you.


Posted By: kostya1122
Date Posted: 02 Oct 2013 at 9:17am
i rarely use running totals
and maybe i'm missing something, but
this is not a running total it is a
summary formula you place in group header or footer
this is the syntax
count(actual,month) + count(cumulative,month)



Print Page | Close Window