Relative Date Values are supported for use within standard Salesforce report filters, however filtering based on 'Year to Date' or 'Last Year to Date' require you to add filters and Filter Logic.
1) Add 2 report filters with the criteria for the current 'Year to Date'
2) Add 2 report filters with the criteria for the previous 'Year to Date'
3) Combine these filters using Filter Logic:
Another way to achieve the requirement is with a new custom field. Here's an example using the 'Opportunities' Object:
1. Go to Setup:
OR (
/* Check whether close date is YTD */
AND (
DATE ( YEAR ( TODAY() ), 1, 1 ) <= CloseDate,
CloseDate <= TODAY()
),
/* Check whether close date is YTD-1 */
AND (
DATE ( YEAR ( TODAY() )-1, 1, 1 ) <= CloseDate,
CloseDate <= IF (
/* Calculate TODAY()-1 YEAR, prevent trying to set last year to Feb 29th */
AND (
MONTH( TODAY() ) = 2,
DAY( TODAY() ) = 29
),
DATE( YEAR( TODAY() ) - 1, 2, 28),
DATE( YEAR( TODAY() ) - 1, MONTH( TODAY() ), DAY( TODAY() ) )
)
)
)
8. Click Next.
9. Enter your desired Field Level Security Settings, then click Next.
10. Select whether you would like to have a checkbox on the Page Layout, then click Save.
See also
Build a Formula Field
000388018

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.