SYMPTOM:
Dynamic dates can be employed to create a year-to-date report, or even a year-to month report.
Users may want to have access to this information even if transformations have not been mapped out in Strategy or the warehouse.
ACTION:
In order to create a dynamic date prompt that returns year-to-date metric values, follow the steps below in Strategy Tutorial project:





Notice that the indicator is changed to 'Dynamic date' and the radio button is changed to 'Today.' This step ensures that the filter is updated every day.
After executing the steps above, the filter definition should appear as follows:

The report SQL from the combination of this template and this filter, in the case of Microsoft Access database, appears as follows:
max(a15.) AS REGION_NAME,
a14. AS SUPPLIER_ID,
max(a16.) AS SUPPLIER_NAME,
sum((a11. * (a11. - a11.))) AS Revenue
a12,
a13,
a14,
a15,
a16
a12. = a13. and
a11. = a14. and
a13. = a15. and
a14. = a16.
and a11. between #2008-01-01# and #2008-02-21#
a14.
select a13. AS REGION_ID,
from a11,
where a11. = a12. and
group by a13.,