G
Gerhard
I am working with a report (.rdlc) in visual studio 2010 with Report Viewer.
All is working well, except that there is one thing I haven't been able to
locate the syntax on. I have a subtotal of count ( [Sum(CountRow)] ) and a
subtotal of elapsed time ( [Sum(CurrentElapsedTime)] ), both of which display
correctly. The question is how do you write the syntax to get the average
(elapsed time / count)? I tried using the expression builder and came up
with =Sum(Fields!CurrentElapsedTime.Value) / Sum(Fields!CountRow.Value), but
that gives an error when running (count is never 0 by the way, so that isn't
the issue). What would be the correct syntax for this? Thanks.
All is working well, except that there is one thing I haven't been able to
locate the syntax on. I have a subtotal of count ( [Sum(CountRow)] ) and a
subtotal of elapsed time ( [Sum(CurrentElapsedTime)] ), both of which display
correctly. The question is how do you write the syntax to get the average
(elapsed time / count)? I tried using the expression builder and came up
with =Sum(Fields!CurrentElapsedTime.Value) / Sum(Fields!CountRow.Value), but
that gives an error when running (count is never 0 by the way, so that isn't
the issue). What would be the correct syntax for this? Thanks.