• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

Fromula Results 2

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
Trygve Thayer
Asked:
Trygve Thayer
  • 2
  • 2
1 Solution
 
mlmccCommented:
Easy way to get this

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}  IN MonthToDate

mlmcc
0
 
Trygve ThayerAuthor Commented:
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
 
mlmccCommented:
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
 
Trygve ThayerAuthor Commented:
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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now