Solved

1st or last day missing from formula

Posted on 2014-04-08
3
202 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now