We are currently writing a form with some calculations that we cannot figure out.
Here is a sample of the Form in question:
What we are looking to accomplish is to fill in the Payment Line 1 Amount field (in the Payments table) with the sum total of the Invoice Line Amount fields that match the Invoice Line Payment Line 1 AND Paid = Yes.
So from the above shot, Payment Line 1 (in the Payments Table) should be 9 since Rows 1-3 (in the Invoice Lines table) are all for Payment Line 1 but Row 2 is set to No.
Payment Line 2 (in the Payments table) should be 17 since rows 4 and 5 (in the Invoice Line table) are set to Payment Line 2 and marked Yes.
We had limited success when using only one criteria (where Paid = Yes). We were able to use:
=SUMIF(Invoice_Lines.Paid,"Yes",Invoice_Lines.Amount) for our Payment Line 1 and it worked in that it displayed the totals of all the amounts but only if Paid was marked as Yes. Now we are trying to add a second criteria (Payment Line = {n}). We did find =SUMIFS as an Excel formula and that seems to work perfectly but after playing, the Forms Help File does not seem to list SUMIFS as a supported function.
Does anyone have any suggesstions as to how we can reach or goal of using multiple criteria in our SUM formula using Forms Calculations. Or would this still need to be done with some custom Java scripting activities. Would be great to use out of the box calculations simply for support going forward and for somewhat for a time crunch.
Thanks!