Boa tarde,
Tenho pouca experiência com reporting viewer e estou com um problema para fazer o calculo da diferença entre o total de duas colunas geradas dinamicamente, a soma dos valores funciona com o seguinte:
=sum(Fields!VALOR_LIQUIDO.Value)
Porém quando eu tento fazer o calculo da diferença dessas duas colunas:
=first(reportitems!VALOR_LIQUIDO) - last(reportitems!VALOR_LIQUIDO)
dá a seguinte mensagem de erro:
The definition of the report '/rptFolhaCentroCusto' is invalid. The value expression for the textrun 'Textbox11.Paragraphs[0].TextRuns[0]' uses an aggregate function on a report item. Aggregate functions can be used only on report items contained in page
headers and footers.
Alguém poderia me ajudar? Antecipadamente agradeço.