I\'m trying to extract some values of a dataset with a condition and I want to know the average of the values that match with this condition. This condition must be changing