Solved

1st or last day missing from formula

Posted on 2014-04-08
3
207 Views
Last Modified: 2014-04-12
Can anyone please help me along here?  I seem to be missing the 1st and/or last day from my reports with this formula that is currently in the Crystal Reports vs what I pull via Excel data connection.  

{@Closed Date} in {?Begin Date} to {?End Date}  

Many thanks....
0
Comment
Question by:captgriggs1
  • 2
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39987347
Is ClosedDate a date or Date Time?

How are you entering the parameters?

Are they dates or datetimes?

If you have a datetime chances are the dates being entered as values will either have 0:0: as the time or the current time appended.  Your closed date may match the date but have a time that is before the start datetime or after the end datetime.

mlmcc
0
 

Author Comment

by:captgriggs1
ID: 39987736
Thanks mlmcc, after your response, I added the -1 to my formula and it gets the information that I need but, I'm not really sure if it's the correct way or not.....  I'm using the Select Expert to build.  I am an extreme beginner at this.  Do you think this will serve the purpose?  (all dates, no time) Thanks

{CallLog.CallStatus} = 'Closed' and
{@Closed Date} = {?Begin Date}-1 to {?End Date} and
(if
{?Group Name} <> 'All'
then
{Assignee.GroupName} ={?Group Name}
else
{Assignee.GroupName} like "*")
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 100 total points
ID: 39987789
If it works it should be ok.

I generally do dates with a comparison as

{@Closed Date} >= {?Begin Date} AND {@Closed Date}  <= {?End Date}

In that way I know how the compare will work

mlmcc
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question