Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: filtered cumulative result Post Reply Post New Topic
Author Message
Eduard
Newbie
Newbie


Joined: 16 Mar 2012
Online Status: Offline
Posts: 4
Quote Eduard Replybullet Topic: filtered cumulative result
     Posted: 16 Mar 2012 at 7:13am

We get the total records in the first month of a date group in a table in the report footer.

Develop hard-coded the following formula {@} = {mApplicationStat.Timestamp FirstMonth} <DateTime (2011,03,01).

Using the total fields and assessing using the formula {} @ FirstMonth get the result mentioned.

The problem appears when I try to streamline the formula so that the year is always the pre-selected.
So that the formula is as follows:

mApplicationStat.Timestamp {} <DateTime (Year ({mApplicationStat.Timestamp} )-1, 03.01)

Theoretically and based on the current selected year is 2012:

DateTime (2011,03,01) = DateTime (Year ({mApplicationStat.Timestamp})-1, 03.01) but the cumulative result disappear of the report.
 
Anyone know the reason of this or how obtain the result by another way?

Thanks and regards in advance.

IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 19 Mar 2012 at 4:55am
seems silly, but shouldn't the part with the date stamp use a comma between the 3 and 1 like the other side?
 
I would think that cr would catch this.
 
If this is a comma in your code, what I would look at would be 'debugging' formulas, like:
Year ({mApplicationStat.Timestamp} )- 1
 
and see if that gives the correct result, then I would expand it to the full date conversion.
 
at least that is how i would proceed.
 
HTH
IP IP Logged
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