I am trying to display a YTD cost and Current Period cost on the same report against a Progress database. Because of syntax issues I cannot use:
CASE Period WHEN @Period THEN Cost ELSE 0 END.
in then SQL.
Alternatively, I have tried to do this on the fly within the report using an expression:
=IIf(Fields!period.Value=Parameters!Period.Value,Sum(Fields!job_cost.Value),0)
but this just sums YTD - maybe due to a scoping issue.
Is there a way I can get the report just to sum the cost for period selected as well as the whole YTD?
Thanks
Steve