Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Calculation formula Post Reply Post New Topic
Author Message
immad
Newbie
Newbie


Joined: 05 Jun 2013
Location: Pakistan
Online Status: Offline
Posts: 25
Quote immad Replybullet Topic: Calculation formula
    Posted: 07 Apr 2015 at 7:57pm

Hello,

my Crystal report data looks like this.

---A------B
---1------1
---1------2
---0------2
---1------3
---0------3
---2------5

i want when There is 1 in A or other number like 2 , 3 in A then it calculate on b like this

---A------B
---1------1
---1------1+1 = 2
---0------0+2 = 2
---1------1+2 = 3
---0------0+3 = 3
---2------2+3 = 5


please help me out
thanks for the help


Edited by immad - 07 Apr 2015 at 8:00pm
immad
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Apr 2015 at 3:45am
if you want to show a row by row changing you can do this via a Running Total or a shared variable formula.
For either you can add an evaluate condition or create a formula field that evaluates first then adds that result.
create a formula field called "B_updated" (or whatever you want)
//B_updated
If A>0 then B else 0
 
Create a Running Total
name = Bsum
field to summarize=B_updated
type = sum
evaluate= for each record
reset=never (unless you have group level sums you want)
place in the detail section and/or footers
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.047 seconds.