I have an SSRS Report, in the database there is a column by name Total_running_hours
.
There are more than one record for a single Cycle_number like more than 1 row with same Cycle_numbe
r but different Block_numbers
and the value in Total_running_hours
field will be same for all the rows with same Cycle_number
.
Eg. 1 Cycle number with 4 diff block_numbers
contain same Total_running_hours
for all 4 rows.
Now the problem is, in the group footer if I put this field then it will show the Total_running_hours
value only once which is correct, but my final requirement is,
I need to get the sum of this field in the Report footer which need to display the sum group wise. No matter how many rows are there for a single Cycle_number
it has to take only once and display the result.
I tried in different ways like
=sum(ReportItems!textbox204.Value) // name of text box in Group footer
Error: Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope.
=sum(Fields!total_running_hours.Value,Group_name)
Error: The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a data set.
Can any one please help me in getting the sum Group wise
Thank you in advance.