简体   繁体   中英

Adding together 4 different Tablix data columns SSRS

I have been using

 =Sum(Fields!Figure, "Dataset1") 
 + Sum(Fields!Figure, "Dataset2")

Now this gives me a result in a text box.

However, i need to sum together the result from 4 different tablix datasets.

I have tried this below but as soon as i try to sum more that 2 datasets it errors.

 =Sum(Fields!Figure, "Dataset1") 
 + Sum(Fields!Figure, "Dataset2") 
 + Sum(Fields!Figure, "Dataset3")
 + Sum(Fields!Figure, "Dataset4")

This gives me (#error). I am assuming i am missing some code somewhere but i have looked online and cant find anything anywhere.

Can anyone help?

Thanks

I'm fairly certain the field is ended with .value:

=SUM(Fields!TextBoxName.Value, "Dataset1")
+SUM(Fields!TextBoxName.Value, "Dataset2")
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM