Solved

Change rolling 12mth formula to rolling 6mth

Posted on 2014-01-22
2
282 Views
Last Modified: 2014-01-22
I have the following records selection formula that pulls pay period data for the past 12 months which works fine.  I now need the same report for a rolling 6 month period and don't know how to modify this formula.

{PRTIME.PER_END_DATE} >= DateAdd("yyyy",-1,DateSerial(year(CurrentDate),month(CurrentDate),1)) and

{PRTIME.PER_END_DATE} < DateAdd("yyyy",0,DateSerial(year(CurrentDate),month(CurrentDate),1))
0
Comment
Question by:jph826
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 200 total points
ID: 39799855
Try


{PRTIME.PER_END_DATE} >= DateAdd("m",-6,DateSerial(year(CurrentDate),month(CurrentDate),1)) and

{PRTIME.PER_END_DATE} < DateAdd("yyyy",0,DateSerial(year(CurrentDate),month(CurrentDate),1))

mlmcc
0
 

Author Comment

by:jph826
ID: 39800254
Perfect - Thank you mlmcc!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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