Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: retrieving old field from report Post Reply Post New Topic
<< Prev Page  of 2
Author Message
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 06 Sep 2013 at 8:41am
haha. gotcha.

yeah, i may need to just scrap this and start all over with a different view point maybe. i applied your RateCalc and it gives me the same rate as the current rate.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Sep 2013 at 9:03am
hmmm.
using your john smith example and showing details and placing the RateCalc formula on teh detail section you should have
john smith   8/1/13  $10.00  @ratecalc = (-10.00)
john smith   8/24/13  $12.00 @ratecalc = 12.00
 
the sum of the @ratecalc (at the employee gorup level) is 2.00
if you multiply that by the workdays you should get the difference amount you are looking for.
 
is this what you see? if not what do you see?
 
EDIT - i noticed i was missing some parenthesis in the original @ratecalc formula


Edited by DBlank - 06 Sep 2013 at 9:12am
IP IP Logged
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 06 Sep 2013 at 9:24am
yeah i put the parens in no biggie. i'm only getting one line for the recent rate for some odd reason. i don't get it. 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Sep 2013 at 9:42am
did you use the group select to only show employees that have two rows of data?
IP IP Logged
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 09 Sep 2013 at 6:15am
UPDATE: i'm using a group on rate.endDate in desc order  and then using the Previous() to pull the previous endDate in the group. this is working well. don't know why this didn't come to mind earlier.

thanks as always for your help DB
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Sep 2013 at 6:39am
just beware any items that have more than 1 change.
That is why I was suggesting the min/max rather than a previous/next
IP IP Logged
<< Prev Page  of 2
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.031 seconds.