# Можно ли создать отчет о количестве пользователей, публиковавших новые запросы каждый месяц?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-create-a-report-on-how-many-users-posted-new-queries-each-month/289100>\
**Category:** Data & reporting\
**Tags:** sql-query\
**Created:** [18.Декабрь.2023 20:26:21 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-report-on-how-many-users-posted-new-queries-each-month/289100 "2023-12-18T20:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jericson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jericson/32/116215_2.png) [@jericson](https://meta.discourse.org/u/jericson)\
**Post date:** [19.Декабрь.2023 17:29:27 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-report-on-how-many-users-posted-new-queries-each-month/289100/10 "2023-12-19T17:29:27Z")

</div>

Ага. Да, мой SQL-запрос делает не это. Похоже, я неправильно понял. Чтобы узнать, сколько тем создано каждый месяц, перейдите по адресу `/admin/reports/topics` и выберите режим графика. Также можно посмотреть вовлечённых пользователей на `/admin/reports/daily_engaged_users`, но там учитываются ответы и лайки. Если я правильно понял, вам нужно что-то вроде этого:

```plaintext
select to_char(created_at, 'YYYY-MM') as month,
       count(distinct user_id) users,
       count(distinct id) topics
from topics
group by to_char(created_at, 'YYYY-MM')
order by to_char(created_at, 'YYYY-MM')

```

Для этого потребуется [Data Explorer](https://meta.discourse.org/t/32566?silent=true), который, возможно, нужно будет установить системному администратору.

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-create-a-report-on-how-many-users-posted-new-queries-each-month/289100)._
