rdlc - How to add up row totals in report viewer -
i'm new reporting , jargon goes try draw insted of write it.
| | | b | c | d | e | ------------------------------------------------- | apples | 1 | 3 | 6 | 2 | 12 | ------------------------------------------------- | oranges | 3 | 2 | 4 | 1 | 10 | ------------------------------------------------- | bananas | 5 | 3 | | 1 | 9 | ------------------------------------------------- | | | | | | 31 |
i need sum last column e
indicated 31
. cells values 12
,10
,9
obtained =sum(fields!a.value + fields!b.value + fields!c.value + fields!d.value)
.
i can't change sql query and/or dataset used. 1 have suggestion? thanks!
edit: i've added function code
public total_lookup_sum integer = 0 public function lookup_sum(byval value integer) integer total_lookup_sum = total_lookup_sum + value return total_lookup_sum end function
and calling code.equals(reportitems!txtfruittotal.value)
false
.
with of colleague answer reached:
sum(fields!a.value) + sum(fields!b.value) + sum(fields!c.value) + sum(fields!d.value)
Comments
Post a Comment