The Aggregation filter can be used in a query. This will allow for your query to be dynamically aggregated from your dashboard filters, or embedded API url creation.
select [payments.created_at:aggregation] from payments
The aggregation filter can applying on the dashboard:
![Aggregation filter on dashboard view](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fcc3fdc79-5b6f-4074-ab54-c5c9f028e89c%2FScreen_Shot_2022-09-21_at_11.34.42_PM.png?table=block&id=fe1c1b24-0a8a-4bd4-bde7-7b9ec3ca9865&cache=v2)
The aggregation filter can also be applied when composing the embeddable URL. Using
Aggregation
as the key in your filter array.// aggregate by day filters: { "Date Range": "last_month", "Aggregation": "day", "ClientId": "YourClientId", }, // aggregate by quarter filters: { "Date Range": "last_month", "Aggregation": "quarter", "ClientId": "YourClientId", },
Here are the available aggregation values:
:sec :min :hour :day :date :week :month :quarter :year
Happy aggregating those results!