Does YTD can handle date range ?

I'm trying to compare a period of X days of the current year with the same period of the prior year.

My MDX query looks like this :

```
WITH MEMBER [Measures].[Prior YTD Amount] AS SUM
(
   YTD
   (
      ParallelPeriod
      (
         [Date].[Year],
         1,
         [Date].CurrentMember
      )
   )
   ,
   [Measures].[Amount]
)
set [ColSet] as
{
   [Measures].[Amount],
   [Measures].[Prior YTD Amount]
}
set [RowSet] as
{
   [Motif].[Categorie].Members
}
SELECT
NON EMPTY [ColSet] ON COLUMNS,
NON EMPTY [RowSet] ON ROWS
FROM [Things]
WHERE
{
   [Date].[2015].[2].[1]:[Date].[2015].[2].[9]
}

```

I'm working with Mondrian 3.6.