Dynamically sum repeater column which is filtered

Hi, what I try to do is to sum entire repeater Price column dynamically during filtering. My problem is that I don’t know how to reset the Price sum every time when I filter the table, now my total is sum of generated sums, can somebody help me with this issue please?

https://hblyc9.axshare.com/

It looks like you need to set Price_sum to 0 for all the filtering text fields. You only do so for the price field, so the sum will only reset when you change that field, but item loaded is being fired every time you update any of the filtering fields and that’s where you’re adding all the prices to the sum.

1 Like

@davzhou you’re right, thanks! In addition, I had the wrong order and “set to 0” should be before filtering, so it didn’t work, thank you very much for your help :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.