Solved

Change rolling 12mth formula to rolling 6mth

Posted on 2014-01-22
2
297 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
[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 Comments
 
LVL 101

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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