Solved

Crystal Reports Formula Help

Posted on 2011-02-18
8
973 Views
Last Modified: 2012-05-11
I have a formula field I am trying to get a total but due to being a novice I need some help with the syntax.  I have a field called {GLTBDetail.FiscalPerOB}  I need to add up all the values and then subtract some of the records based on certain criteria.

I can add it easy enough     Sum  ({GLTBDetail.FiscalPerOB})

Can get the subtract part   "Select the records that are equal to the field above where {GLAccount.SegValue3} = "990" and sum them

So here is what I have and looking for the ?    Sum  ({GLTBDetail.FiscalPerOB}) - ?
0
Comment
Question by:Trygve Thayer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 34931556
How about a formula like this

If {GLAccount.SegValue3} = "990" then
    0
Else
    {GLTBDetail.FiscalPerOB}

Yoou can then do a summary on that formula and get the result you need.

mlmcc
0
 
LVL 3

Author Comment

by:Trygve Thayer
ID: 34931569
Trying that now.
0
 
LVL 3

Author Comment

by:Trygve Thayer
ID: 34931590
Ok I called the field  PeriodOB_990  then in the formula field I was using I put in Sum ( PeriodOB_990) and it worked.    Not sure I understand what it does but does the formula you gave  exclude the "990" because it is set to 0 and then all the others fall into  {GLTBDetail.FiscalPerOB}

0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Expert Comment

by:AshiqShaikh
ID: 34931612
if you can create a group on some field you wish to seprate your records you may use SUM function as
sum({field}, {groupField})
0
 
LVL 3

Author Comment

by:Trygve Thayer
ID: 34931616
OK what you game me works so I will just go with that.  Thanks very much!!!
0
 
LVL 3

Author Closing Comment

by:Trygve Thayer
ID: 34931618
Thanks to the Experts and fast too!!!
0
 

Expert Comment

by:AshiqShaikh
ID: 34931636
is this works fine, if so accept the answer and rank my points up
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 34931650
Yes that is exactly what it does.

If you didn't need the 990 records for other purposes you could have used a selection formula to not select them for the report.

mlmcc
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question