# Issues with filters on admin graphs

**URL:** <https://meta.discourse.org/t/issues-with-filters-on-admin-graphs/49260>\
**Category:** Bug\
**Created:** [26 Agosto, 2016 07:58 UTC](https://meta.discourse.org/t/issues-with-filters-on-admin-graphs/49260 "2016-08-26T07:58:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)\
**Post date:** [26 Agosto, 2016 07:58 UTC](https://meta.discourse.org/t/issues-with-filters-on-admin-graphs/49260/1 "2016-08-26T07:58:32Z")

</div>

## Category filter doesn’t work on “User visits” graph

Steps to reproduce:

1. Head to your admin dashboard, then click on “User visits” to bring up the graph.
2. Change the category from the drop-down and click “Refresh report”.
3. Note that none of the values have changed.

According to this graph, every single user was able to visit a category months before I created it. 🙂

**Expected behaviour:** The graph should show statistics only from the selected category.

* * *

## Date range doesn’t revert when cleared out

Steps to reproduce:

1. Head to your admin dashboard, then click on “User visits” to bring up the graph.
2. Take note of the default date range.
3. Change the date range and click “Refresh report”. (You can widen or narrow the range.)
4. Delete out the dates in the range and click “Refresh report”. Note that you’re still seeing the date range from 3️⃣, not from 2️⃣.
5. You can even refresh the page and the range won’t revert to default. 😕

**Expected behaviour:** Clearing the date range out should revert to the default date range.

* * *

## Date range gets confused when only field populated

1. Head to your admin dashboard, then click on “User visits” to bring up the graph.
2. Change the “until” date to some time in the distant past and click “Refresh report”.
3. Note that the graph draws the axis and legend, but no details; there’s no error message.

**Expected behaviour:** Ideally, it shouldn’t be possible to run the report with only one date range; setting one should set the other if it is blank to some sensible default (a month/week in the past/future, as appropriate?) Alternatively, a message should be shown.

* * *

## Inappropriate filters shown for some graphs.

I can filter by category for:

- New users
- User profile views
- Emails sent

On none of these does changing this filter actually _do_ anything – nor should it, as it’s meaningless. 🙂 This filter shouldn’t be shown on those charts.

* * *

_Aside: I collected all of these up into one topic as they seem to be closely related. Is it preferable to instead post each of these as a new topic?_

---

_[View the full topic](https://meta.discourse.org/t/issues-with-filters-on-admin-graphs/49260)._
