Solved

Fromula Results 2

Posted on 2013-01-21
4
264 Views
Last Modified: 2013-01-21
Year({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Year(currentdate) and
Month({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Month(currentdate) and
Day({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) <= Day(currentdate)

I have a formula above and would like to know what the results would return.  The data being pulled has multiple years before and after the current month.  

What I am trying to do is get the formula to select anything less than or equal to the current day and within the same month withing the same year.  For example.  If today is 1/21/2013  I am wanting to pull everything from 1/21/2013 back to 1/12013

Just wanting to make sure.

Previously I asked a similar question and found I had the wrong formula.


Just wanting to make sure this will work.

Thanks in Advance
0
Comment
Question by:tthayer
  • 2
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 38803112
Easy way to get this

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}  IN MonthToDate

mlmcc
0
 
LVL 3

Author Comment

by:tthayer
ID: 38803891
Wow there are many ways to get there!  Thanks for taking the time.  If I am going the opposite way for the same year and the current month but the day is greater than today but still the same month is there also a better way or should I use the below.

Year({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Year(currentdate) and
Month({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Month(currentdate) and
Day({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) > Day(currentdate)
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 38803916
Perhaps

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate} > CurrentDate AND
JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate < DateSerial(Year(CurrentDate), Month(CurrentDate) + 1, 1)

mlmcc
0
 
LVL 3

Author Comment

by:tthayer
ID: 38804062
Thanks so much.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Title # Comments Views Activity
Backup Exec 15 not showing job history in report if failed/cancelled. 9 131
Business Object Server 2 30
Crystal reports filter out records 2 36
Crystal Report - Charts 4 15
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. …
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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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