Cómo calcular la suma de filas de rdlc tablix y el recuento de filas en cuadros de texto

I have tablix named tablix2 and have 3 columns ,I want to calculate rows sum and count in 2 textboxes out of the tablix scope, I try this expression.






Its always show me this error message:

The Value expression for the text box ‘Textbox7’ has a scope parameter that is not valid for an aggregate function. 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 dataset.

preguntado el 27 de noviembre de 13 a las 07:11

2 Respuestas

You need to use a scope name which is valid. If you're outside of the tablix then you should use dataset scope probably.

Prueba algo como

=Count(Fields!ID.Value,"DatasetName") or


respondido 27 nov., 13:20

Thank you for answer but I need to perform the aggregate methods on tablix (tables) , not DataSet if you know any information i'll be thankful . - Salameh

You can't use a scope that you're outside of (as the error message says). - Diana

Yeah I see , I solve it by using stored procedure with parameters in SqlDataSource before the report opened and make the Count through Dataset .Thanks fore helping . - Salameh

Right Click on the tablix on the last row in the group (you have to do this in the "handle" area to the far left because you get a different right click menu if you click in the row area), then choose "Insert Row" and "Outside Group Below." Merge cells as necessary and drag a textbox into the one you want to put the value. Then put =Count(Fields!ID.Value) for the expression inside the textbox to get the group count, for example.

This worked for me, but I agree it is far from intuitive and doesn't appear to be documented well anywhere for what should be such a basic feature in a reportwriter.

Respondido el 22 de Septiembre de 17 a las 18:09

This worked for me, however I used "Inside Group Below" to count the items that applied to the group. - KAThompson

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.