Solved

Fromula Results 2

Posted on 2013-01-21
4
261 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

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. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

18 Experts available now in Live!

Get 1:1 Help Now