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

Update hogql-date-time-filters.md #10604

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contents/tutorials/hogql-date-time-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ toStartOfWeek(timestamp) == toStartOfWeek(now())
Alternatively, if you wanted a weekly report for only weekdays, you can use [`toDayOfWeek`](https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions#todayofweek) to filter out Saturday and Sunday with their day’s number:

```
toDayOfWeek(timestamp) != 6 and toDayOfWeek(timestamp) != 7
toInt(toDayOfWeek(timestamp)) NOT IN (6, 7)
```

## Analyzing subscribers or trial users
Expand Down Expand Up @@ -128,4 +128,4 @@ This is useful to learn what features are used immediately after sign up and oth
- [Running experiments on new users](/tutorials/new-user-experiments)
- [The power of HogQL’s sum() aggregation](/tutorials/hogql-sum-aggregation)

<NewsletterForm />
<NewsletterForm />