Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fromula Results 2

Posted on 2013-01-21
4
Medium Priority
?
268 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:Trygve Thayer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

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:Trygve Thayer
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 101

Accepted Solution

by:
mlmcc earned 2000 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:Trygve Thayer
ID: 38804062
Thanks so much.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

610 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