Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Help Please! Post Reply Post New Topic
Author Message
LaurenH
Newbie
Newbie
Avatar

Joined: 26 Sep 2016
Location: United States
Online Status: Offline
Posts: 1
Quote LaurenH Replybullet Topic: Formula Help Please!
    Posted: 05 Oct 2016 at 1:02pm
I have been trying to figure this out for days! I am very much a beginner with formulas, so frustrating!

I have a report that is grouped by employee numbers (each employee has a distinct number).
I want to figure out what their net monthly salary is including their auto earnings (phone, rent, car, etc.).
Not all employees receive auto earnings, some employees receive multiple auto earnings.

I cannot figure out the formula to show an employees auto earnings or show $0 if there are none.

I've tried:
if {AE.EarnCode} <=105 then {AE.RateAmt} else 0

It's just listing all the different auto earning rate amounts in the report.

If I try:
if {AE.Employee} {AE.EarnCode} then {AE.RateAmt} else 0
it tells me I need a boolean, which I don't want, I just need it to tell me how much the employee makes in auto earnings per month. I've figured out the salary which was easy for some reason but the auto earnings are throwing me for a loop!
Thank you in advance for any assistance!
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 06 Oct 2016 at 3:59am
So are there multiple auto earnings per month per employee? If so, you may need to set up what we call a manual running total.  Basically by using a variable, you check in the details if you have a auto earning and  add it to your running total, at the end of the details, then you can use that variable to be used in another calculation or displayed.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 06 Oct 2016 at 3:59am
You need to take the first formula you created and Sum it, which you can do by inserting a summary on the report. You'll need to sum it for the employee number group. Then place it in either the group header or footer.

-Dell
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.