Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Sum Allowed in Chart but not as Formula Post Reply Post New Topic
Author Message
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Topic: Sum Allowed in Chart but not as Formula
    Posted: 11 Feb 2010 at 1:46pm
Just as the Subject title says. I'm creating a report and I want to sumarize a number field that is based of the formula {Break}:
 
if {ReasonCode}='Break'  
then cdbl({TotalMinutes})
        else 0
 
 
{TotalMinutes} is a formula that is:
 
if {LogIn}>{LogOut}
then datediff('n', {LogOut}, {LogIn})
         else 0
 
 
{LogOut} is a DateTime field and {LogIn} is a formula based on the same DateTime field:
 
if next{ResourceName}={ResourceName}
and date(next({DateTimeField}))=date({DateTimeField})
then next({DateTimeField})
else date(0,0,0)
 
 
 
I can pull {Break} into a chart as Show Value with the Summary Operation of SUM and it displays exactly what I want. But Crystal will not allow me to summarize the formula field in a formula, using the SUM function or as a Running Total.
 
Can someone explain to me why?
 
Thanks.


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.031 seconds.