Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing YTD to July to June

Status
Not open for further replies.

Rangie

MIS
Aug 7, 2001
8
AU
The YTD formula's currently work on a Jan-Dec Year. How can I change this to default to Jul-Jun.
 
Hi!

Create a formula as below, and then reference it in the record selection criteria:

//@StartDate:
If (Month(CurrentDate) < 7) Then
DateTime(Year(CurrentDate)-1,7,1,0,0,0)
else
DateTime(Year(CurrentDate),7,1,0,0,0)

Record Selection Criteria:
{Table.Date} >= @StartDate
This will pass the SQL to the database.

/Goran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top