I have a repeating group which has subtotals in each individual cell. These subtotals are a text-box, and are calculated on the spot (because the data that these subtotals add up can be changed on other pages). So far, the subtotals in each cell work perfectly fine, and are behaving as they should. My issue comes when I need to create a grand total (sum of all subtotals) OUTSIDE the repeating group.
I don’t think I can use :sum in this case, because the numbers won’t add up. Each subtotal does a search for data relevant to its own cell, so simply using a :sum doesn’t really work.
Another idea I had is in the dynamic text of the grand total text box, I reference the repeating group’s first item, and calculate the sum of that, then write dynamic text to add it to the repeating group’s second item’s sum total, and then the third, etc. But the repeating group could potentially have n amount of terms and I don’t know how to do an nth term sum in bubble (if possible).
If needed I can post screenshots/link to the app, but it’s quite big and the subtotals themselves reference a lot of other data which might confuse the situation (they work fine, I’m just trying to focus on grand total). A good analogy would be this Google sheet screenshot:
In this case the list of businesses and sub-totals would be in the repeating group, and the grand total at the bottom would be outside the repeating group and get the sum of the individual subtotals within the repeating group. This is just an analogy, and I’d be happy to provide more details if needed. Does anyone know how to get the grand total?