The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

rhondac (1) [Avatar] Offline
#1
Hello,

I need to sum these textboxes which use different datasets, what is the correct method:

=count(Fields!Month_Submitted.Value, "SALES")
=count(Fields!Month_Submitted.Value, "SALESDIR")
=count(Fields!Month_Submitted.Value, "SALESVP")
=count(Fields!Month_Submitted.Value, "CREDIT")

I tried doing this:

=count(Fields!Month_Submitted.Value, "SALES") + count(Fields!Month_Submitted_1.Value, "SALESDIR") + count(Fields!Month_Submitted_2.Value, "SALESVP") + count(Fields!Month_Submitted_3.Value, "CREDIT") but i get this error:
The value expression for the textbox ‘textbox113’ 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 data set.

Thanks,
RC