Topic: Difference from Month to Previous Month Posted: 04 Apr 2014 at 5:49am
I am a novice using Crystal. I would appreciate help with what I believe requires a formula.
I need to display the difference between readings from month to month. I need to subtract the last month from the previous month and have been unable to figure out how to do it.
field date number
equip 1/1/14 136
equip 2/1/14 139 (display '3')
equip 3/1/14 140 (display '1')
Display total '4'
Thanks for any help.
Joined: 17 Mar 2014
Online Status: Offline
Posts: 53
Posted: 08 Apr 2014 at 11:15am
create a shared variable that storage this result table.number - previous(table.number) per detail
shared numbervar total := total + abs(table.number - previous(table.number)) then show that variable in your group footer and also initialize it in 0 in your group header, so every time the group changes it will clean it.
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