The mdx query is:

WITH
SET [~ROWS] AS
{FILTER([time].[date].Members, DateDiff('yyyy',cdate('2017-01-01'), cdate([time].[date].CurrentMember.name))< 0)}
SELECT
NON EMPTY {[Measures].[amount]} ON COLUMNS,
NON EMPTY [~ROWS] ON ROWS
FROM [sales]