Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Row Count within 48 hours. Post Reply Post New Topic
<< Prev Page  of 2
Author Message
hegazy
Newbie
Newbie


Joined: 18 Dec 2009
Online Status: Offline
Posts: 11
Quote hegazy Replybullet Posted: 23 Dec 2009 at 9:42am
I was doing it as a running total field (as I did with the 48 hour previously asked).

I broke it up in 2 parts in formula fields:

Formula 1: {Incident.Source} in ["Logged", "Active","Waiting"] came out as false.

Formula 2: whether using :

{Incident.CreatedDateTime} in datetime(year(currentdate),1,1,0,0,0) to currentdatetime

or

{Incident.CreatedDateTime} in yeartodate

These comes out as true.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Dec 2009 at 9:45am
Did the formula 1 come out FALSE when you expected it to be TRUE?

Edited by DBlank - 23 Dec 2009 at 9:45am
IP IP Logged
hegazy
Newbie
Newbie


Joined: 18 Dec 2009
Online Status: Offline
Posts: 11
Quote hegazy Replybullet Posted: 23 Dec 2009 at 9:47am
You know what, I have found the solution to my error.

It seems like I have mixed up a different table from the one I have posted for this issue.

It is now working.


Thanks for your help and I apologize for the mix up!!

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Dec 2009 at 9:50am
No problem and glad you got it to work.
If I am getting unexpected results I usualy deconstruct the formula(s) and look for the 'broken' part. You can usually figure out where the mistake is from there or at least point yourself in a good direction.
IP IP Logged
Vertex
Newbie
Newbie
Avatar

Joined: 29 Oct 2009
Location: India
Online Status: Offline
Posts: 24
Quote Vertex Replybullet Posted: 23 Dec 2009 at 11:51am
count ({Order.OrderID}, {Order.CreateDateTime}, "monthly") ...for month

so what can we count records for current year like same above technique

"yearly" is not working here at the place of "Monthly"


Edited by Vertex - 23 Dec 2009 at 11:52am
Hi Peoples
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Dec 2009 at 11:57am
"annually" but you have to have a group that supports this.
IP IP Logged
Vertex
Newbie
Newbie
Avatar

Joined: 29 Oct 2009
Location: India
Online Status: Offline
Posts: 24
Quote Vertex Replybullet Posted: 23 Dec 2009 at 12:06pm
Thanks

 "annually" is working here 
Hi Peoples
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.016 seconds.