Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: cross level subtraction Post Reply Post New Topic
Author Message
Roseline
Newbie
Newbie


Joined: 09 Nov 2009
Location: India
Online Status: Offline
Posts: 1
Quote Roseline Replybullet Topic: cross level subtraction
    Posted: 09 Nov 2009 at 3:37am
Hi,
 
I have created a crystal report. In that the fields are as follows:
 
life time  Tool time   
400          30             
400          20             
400          30
 
I need to calculate the balance as follows:
 
life time  Tool time   Balance
 
400          30              370        
400          20              350
400          30              320
 
for each group the life time will be same. so i put it in the group header section. and the tool time and balance are in detail section.
 
if another group is also there na, then it should subtract from its life time value
 
 
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 11 Nov 2009 at 6:24am
shared variable Balance;
Balance := Balance - {table.ToolTime};
 
in the header:
shared variable Balance := {table.lifeTime};
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.