I have a clonable template with a custom field called status that takes in two params..satisfied and notsosatisfied and I want to display monthly stats in % of how many are satisfied and how many are notsosatisfied out of all from that month.

The thing is that when testing with this scenario:5 pages added in 01.20181 page added in 01.2017

This is ok: When I press on January 2018 (5) I get Satisfied: 80% Not so satisfied: 20% Total: 5But when I press on January 2017 (1) i get the stats for all 6 pages: Satisfied: 67% Not so satisfied: 33% Total: 6

..when it should have been Satisfied: 0% Not so satisfied: 100% Total: 1