Solved

Formula Results

Posted on 2013-01-21
3
283 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

758 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

19 Experts available now in Live!

Get 1:1 Help Now