> For the complete documentation index, see [llms.txt](https://userguide.cryptoquant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://userguide.cryptoquant.com/web3-analytics-tool/how-to-use-query-tool/1.-datetime-aggregation.md).

# 1. DateTime Aggregation

## Datetime Aggregation

By choosing a table and adding a Query block, you'll find a menu at the top that features the "Time Resolution" dropdown, and a "Range" dropdown.

Once these options are set, the system will automatically generate the time series data based on the selected configurations, simplifying the process of working with time series data.

### Using datetime

Datetime is automatically included in your query results.

The datetime reference for each table has already been established beforehand. For instance, in the transaction data table, "block\_time" is automatically utilized as the time reference.

### Time resolution dropdown

In the “Time Resolution” dropdown, you can choose the time unit to use for statistical analysis. The "Do not aggregate" option allows you to view data without any aggregation. If this option is selected and an aggregate function is used in the metric section, an error will be displayed.

To aggregate the data, select options like Day, Hour, or Minute. For example, if you are calculating the sum(amount) of transactions in the metric section and set “Day" as the resolution, you can view the daily total of transaction amounts.

When a resolution is chosen, it is important to specify an aggregate function in the metric; if only a column is used without an aggregate function, a query error will occur as the method for calculating the statistics is not specified.

[![](https://downloads.intercomcdn.com/i/o/687207038/316f26d2727c0c8f2f708ed9/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7+2023-03-09+%EC%98%A4%ED%9B%84+2.04.26.png)](https://downloads.intercomcdn.com/i/o/687207038/316f26d2727c0c8f2f708ed9/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7+2023-03-09+%EC%98%A4%ED%9B%84+2.04.26.png)

### Range

In the Range dropdown, you can choose the time range in which you want to view the results. If you don't select a range, it will show the entire duration.

It's also possible to only select one of the "from" or "to" options, in which case the unselected part will be considered the full range.

<figure><img src="https://downloads.intercomcdn.com/i/o/687206769/f85bb068d3d7e93b434c9f3a/range.png" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://userguide.cryptoquant.com/web3-analytics-tool/how-to-use-query-tool/1.-datetime-aggregation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
