Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: filtered cumulative result
Author
Message
Eduard
Newbie
Joined: 16 Mar 2012
Online Status: Offline
Posts: 4
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 Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.