Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: sum of value based on criteria Post Reply Post New Topic
Author Message
bobby_macnair
Newbie
Newbie


Joined: 26 Mar 2008
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote bobby_macnair Replybullet Topic: sum of value based on criteria
    Posted: 26 Mar 2008 at 5:28am

Hi all,

Im creating a report in designer and have come across a very simple problem im sure.

The data returned includes many accounts, and values associated with the accounts (debit, credit, closing balance etc).
 
All i need to do is get the sum'd closing balance for a particular account, which in this case is "10090 - Investments".
 
The problem is that this account is part of a few funds, and i want to get the sum of the closing balance for this account across multiple funds.
 
for example...
 
Fund 1  10090 - Investments                      30,000.00
Fund 1   10680 - Cash                                    15,000.00
Fund 2   10170 - Payback                               46,000.00
Fund 2  10090 - Investments                      15,000.00
 
I would just want to see the bold values sum'd, which would be 45,000.00
 
apologies if this makes no sense... please ask for additional information.
 
I tried the following code but this didnt bring out the correct value:
 
iif({Summary_Trial_Balance.Account} = "10090 - Investments", sum({Summary_Trial_Balance.Ending Balance}), 0)
 
Thanks in advanced.
 
IP IP Logged
andymc
Newbie
Newbie
Avatar

Joined: 17 Mar 2008
Location: United States
Online Status: Offline
Posts: 18
Quote andymc Replybullet Posted: 26 Mar 2008 at 8:19am
Create a formula (@ balance):
 
if {Summary_Trial_Balance.Account} = "10090 - Investments" then
    {Summary_Trial_Balance.Ending Balance}
 
 
Put this formula in the detail section.  Right-click the formula and insert a summary (sum) on it.
 
Andymc
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.063 seconds.