Question : How Do I Create a “Totals by Department” Formula for a InfoPath Form Field?

I have roughly 35 departments which are each represented by a department number in the form.
In the form’s input view, the submitter is able to input the number of documents scanned for any of these departments, which can be chosen from a drop-down menu also on this view.  There are 40 different document types that can be scanned, each with a field that the submitter can enter the number for any category and a drop-down menu field for each category.

On another view of the form, these same 40 fields are located in a repeating table so the form is able to be merged with other submitted forms to gain totals based on whatever time period is needed.
 
Here’s where I am stumped – I was able to create a field that will show the overall total number of documents scanned, I was also able to create fields for the total number of document types scanned, but after creating another set of “totals” fields for each department, I can’t figure out what I need to do in order to get a total number of documents scanned for each department (and type of document scanned does not matter here, just a total number of overall documents that were scanned for each department number).

I’ll add some screenshots of my form below so that might give you a better idea of what I’m shooting for.  

Answer : How Do I Create a “Totals by Department” Formula for a InfoPath Form Field?

It could be the merge which is getting you.  I have never seen it implemented very well.

Looking at your screen shot you are not doing it right.

In your formula where you have sum(Checkin)  when you select the checkin field, doulbe click it in the formula builder.  In that window select Filter from the lower left.  Then you can say which Checkin Values to include.
Random Solutions  
 
programming4us programming4us