Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Sum of Running total(s) Post Reply Post New Topic
<< Prev Page  of 3
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Nov 2009 at 7:04am
You are correct that any RT that is NULL will NULL out any formula that adds them together. A work around is to use multiple if thens.
(if isnull({#RT1}) then 0 else {#RT1}) + (if isnull({#RT2}) then 0 else {#RT2}) + (if isnull({#RT3}) then 0 else {#RT3}) + ...
 
Here are a couple of soultions for your issue (hopefully).
Group on DED Code, make your RTs as you have them and place them on DEDCODE group footer then do a insert sumamry as SUM(DED-AMOUNT,DEDCODE) and place it on the DEDCODE-GRoup Footer for your YTD amount. This is the amounts per Dedcode. (If you want all the Dedcodes at once then make a formual field as SUM(DEDcode).)
 
You could also make a Crosstab (this assumes you do not have more than 1 year of data, if you do you have to adjust for that).
Create a formula to get your Month names:
Monthname({Command.CHECK-DATE},abbreviate)
Add a Crosstab in the RH or RF
In the CT Expert Columns is the new Month Formula you just made
Rows is the DedCode field
Summarized field = Ded Amount
 


Edited by DBlank - 20 Nov 2009 at 7:07am
IP IP Logged
nabilino
Newbie
Newbie
Avatar

Joined: 02 Nov 2009
Location: United States
Online Status: Offline
Posts: 25
Quote nabilino Replybullet Posted: 20 Nov 2009 at 9:08am
Great, that solved the YTD problem.
Thank you.
Can't believe how such easy calculation in Excel could be tedious in Crystal.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Nov 2009 at 9:12am
It is just a different way of looking at it and takes a little time to learn how crystal reads and interprets the data.
Once you get it it is not as difficult as it appears and worth the effort.
Glad you got it worked out Thumbs%20Up
IP IP Logged
<< Prev Page  of 3
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.047 seconds.