Solved

Change rolling 12mth formula to rolling 6mth

Posted on 2014-01-22
2
288 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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 …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

772 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