I'm trying to use this feature to calculate a cumulative value based on