Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better align comparisons to previous periods #277

Open
rghedin opened this issue Jan 3, 2025 · 2 comments
Open

Better align comparisons to previous periods #277

rghedin opened this issue Jan 3, 2025 · 2 comments

Comments

@rghedin
Copy link

rghedin commented Jan 3, 2025

Hi! I noticed that Koko compares current and previous periods considering the whole previous period, even when they are uneven.

For example, in this monthly view the three days of January 2025 is compared against the whole December 2024:

Captura de Tela 2025-01-03 às 17 35 22

This information is slightly misleading, since it's comparing 3 days to 31, not to the “previous period”. (This, of course, being one way to interpret what's being showed.)

A more useful comparison would limit the previous period to the equivalent that has passed in current one, so Jan 1st–3rd to Dec 1st–3rd.

@dannyvankooten
Copy link
Member

dannyvankooten commented Jan 4, 2025

Hi @rghedin,

Previous versions of the plugin would already limit the previous period if someone was looking at a partial period exceeding the current date, but I recently changed this. I'm not 100% sure why though, because I absolutely do agree that this is confusing.. :')

One thought I would like your input on:

  • When looking at "this year" vs. "last year" (for example), should we limit to the last X days from last year or should it be the same period, but from last year? Say it's currently April 1, should we compare against October to December from last year or against January to March?

I reckon for some sites the seasonal effect may be quite large and I think this is the part I got stuck on in my head, ultimately reverting in just comparing periods as-is.

@rghedin
Copy link
Author

rghedin commented Jan 4, 2025

In this scenario, I believe it should be compared against January to March.

A good framework for seasonal comparisons is the stock market. The main comparison for public companies is against the same period last year (1st quarter against 1st quarter last year, for instance).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants