I am creating a variable trying to use a field from a dataset, but it's throwing an error. "DATAFields" is the name of the dataset.
=Year(Fields!Year.Value, "DATAFields")-9
Error:
The definition of he report is invalid. The Variable expression for the report 'body' refers directly to the field 'Year' without specifying a dataset aggregate. When the report contains multiple datasets, field references outside of a data region must to contained within aggregate functions which specify a dataset scope.
Example
02/02/2015
Output
2007
Please can someone help...