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
Solved

Formula Results

Posted on 2013-01-21
3
286 Views
Last Modified: 2013-01-21
Month({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) < Month(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 the current month and back including the prior years.   For example.  If today is 2/24/2013  I am wanting to pull everything from 1/31/2013 back.

Just wanting to make sure this will work.

Thanks in Advance
0
Comment
Question by:tthayer
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 38801802
The formula will not do that.
All it does is compare the month number.  So at the moment (Jan 2013 so month=1) It will find nothing because there is no month number less than 1.

To get all data up to the end of the previous month use a selection rule of..

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) < Dateserial(Year(currentdate),Month(currentdate),0)

The '0'th of any month equates to the last day of the prior month.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 38802116
If you need too include the last day of the month then change the 0 to a 1 or the < to <=

mlmcc
0
 
LVL 3

Author Comment

by:tthayer
ID: 38802538
Ok put that in and understand it  to calculate back the the last day of the prior month and get everything from that day back.  Being new to this I did not realize I could do in one formula.  I have another I woul like checked but will send another post as this satifies the request.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of 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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

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