Solved

Formula Results

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

16 Experts available now in Live!

Get 1:1 Help Now