Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: This field cannot be summarized Post Reply Post New Topic
Author Message
LuisSantos
Newbie
Newbie
Avatar

Joined: 22 Jul 2008
Location: Australia
Online Status: Offline
Posts: 11
Quote LuisSantos Replybullet Topic: This field cannot be summarized
    Posted: 04 Nov 2008 at 10:20pm
I have a main report to calculate working hours of employees (known as Equivalent Full Time Employees or EFT)
 
Working hours for full time employee hours are calculated using formula @EFT.
 
Working hours for Casual employees are calculated based on different tables so I have a sub-report to calculate and pass back result to main report using a Shared NumberVar @EFTcasual.
 
All works fine and I get the results back from the sub-report. I also have a formula to calculate @lineTotal =  @EFT + @EFTcasual
 
My problem is that then I cannot get a group subtotals and a grand total of my @lineTotal.  
 
lineTotal does not appear on the list of fields that can be used to create a running total. Also if I create a formula @subTotal = Sum(@lineTotal)
I get error "This field cannot be summarized".
 
Any ideas on how to solve this problem ?
Thank you 
IP IP Logged
RitaInHood
Newbie
Newbie


Joined: 07 Jul 2008
Online Status: Offline
Posts: 25
Quote RitaInHood Replybullet Posted: 05 Nov 2008 at 10:22am
This might be similar to a problem I had where the eventual cause was the null values that may or may not come in from the subreport.  The solution was to add an isnull check:

if not isnull([returnfromsubreport])
 then @subTotal := @subTotal +[returnfromsubreport]
 else @subTotal := @subTotal ;    //or skip this line

 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 06 Nov 2008 at 2:23pm
if that doesn't work, you can always create/add to your @lineTotal formula to update another shared variable like @subTotal and display that.  Not the cleanest way, but if Crystal won't let you summarize...
IP IP Logged
LuisSantos
Newbie
Newbie
Avatar

Joined: 22 Jul 2008
Location: Australia
Online Status: Offline
Posts: 11
Quote LuisSantos Replybullet Posted: 09 Nov 2008 at 6:42pm
thank you both lockwelle RitaInHood. I went with lockwelle suggestion and created a formula to accumulate a subtotal that I then display at GF1
IP IP Logged
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.016 seconds.