Hi Noel,
This is because the SQL parser Inside B1 is unable to give the correct type to your parameters.
You have to find a workaround... i.e. something like:
DECLARE @Start INT SELECT @Start = TF.[Year] FROM OACP TF WHERE TF.[Year] = [%0]
I personally don't understand the line OR T0.Year = [%1] because you are going to sum the sales for 2 years in a row, but it was not the question.
Regards,
Eric