Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: formula help for different records Post Reply Post New Topic
Author Message
dvsp10
Newbie
Newbie


Joined: 07 Oct 2010
Online Status: Offline
Posts: 2
Quote dvsp10 Replybullet Topic: formula help for different records
    Posted: 07 Oct 2010 at 4:40am
I'm not an expert by ANY means on crystal, I just know enough to edit some existing ones.

I have a report that pulls a record selection of accounts over 100 and the report gives a sum of everything over 100.  We pull it on everything over 100 because that's the only details they want to see.

I need to add to my report the sum of everything that's under 100 but I'm not sure how to do that because the data in the report is pulling everything over 100, is there a way I can make a formula field that does it's operations on a different record selection or something similar?




Edited by dvsp10 - 07 Oct 2010 at 5:54am
IP IP Logged
rvink
Groupie
Groupie
Avatar

Joined: 04 Feb 2008
Location: New Zealand
Online Status: Offline
Posts: 55
Quote rvink Replybullet Posted: 07 Oct 2010 at 12:08pm
Your report needs to retrieve all records so you can sum the records less than 100. To separate out the accounts less than 100 one approach is to use a formula, something like this:

if {account.value} < 100 then
  "Accounts less than 100"
else
  {account.name}

I'm assuming the accounts have a name or something that you can identify them by. You can then create a group on this formula and put a sum on the group footer. This keeps all the records separate for accounts over 100, and lumps together all accounts less that 100.
IP IP Logged
dvsp10
Newbie
Newbie


Joined: 07 Oct 2010
Online Status: Offline
Posts: 2
Quote dvsp10 Replybullet Posted: 08 Oct 2010 at 4:49am
Ok so i kind of see what you are saying but I'm stuck at this.

The group I create on the formula is that what I put in the Group Selection under selection formula in the formula workshop?


The logic I need is that I need to select all records so I can report on all of them.

I then need in the actual report to only report on the the details of the accounts over 100, I then need to have a total for accounts under 100 and accounts over 100.

I guess my first issue is I'm not sure how to make the report details only show for accounts over 100 while selecting all records.

My second problem is then having a total for each one, I'm not sure where to put these formulas/logic.
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.016 seconds.