Average of last 12 months data (not working as expected)
Hi,
I'm trying to make a KPI to show the average of customer returns in the last 12 months considering the max data filtered.
For instance, if the user has selected March of 2024, then the displayed value should be the average of returns per customer since March of 2023 (12 months back).
Basically I counted the distinct sales id aggregated by customer and then used avg(). It seems to be working as expected while selecting a single year, but if I select 2023 + 2024 the value changes for some reason