# Group Time Series by Month or Year

**URL:** <https://community.dynatrace.com/t/group-time-series-by-month-or-year/45545>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed\
**Created:** [May 13, 2024, 12:45pm UTC](https://community.dynatrace.com/t/group-time-series-by-month-or-year/45545 "2024-05-13T12:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JhonU](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Post date:** [May 13, 2024, 12:45pm UTC](https://community.dynatrace.com/t/group-time-series-by-month-or-year/45545/1 "2024-05-13T12:45:42Z")

</div>

Hi, maybe this is a simple thing but I’m just starting out in the world of Dynatrace DQL. I have a time series

timeseries fd=sum(cloud.aws.cloudfront.requests\_sum\_by\_region)

and I need to analyze the seasonality, for this it is necessary to obtain the maximums either by day, month or week, the time series returns a timeframe I do not know how I could group this timeframe into months or weeks I have seen documentation and in itself everything is given for a timestamp.

I appreciate you if you have any ideas that can guide me

---

<div class="post-metadata">

**Author:** ![Eric\_Yu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/eric_yu/32/20360_2.png) [@Eric\_Yu](https://community.dynatrace.com/u/Eric_Yu)\
**Post date:** [May 13, 2024, 9:51pm UTC](https://community.dynatrace.com/t/group-time-series-by-month-or-year/45545/2 "2024-05-13T21:51:04Z")

</div>

Hi Jhon,

You can try playing around with the interval agregation:

 ![Eric_Yu_0-1715637034904.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/6/c6cf98fbc3550e367f1e0334e97138f77221cc62.png)

> **[DQL metric commands](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/commands/metric-commands)**
>
> DQL metric commands

 ![Eric_Yu_1-1715637053322.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/4/849e5aff5e94c532cff0e872bdb168ed91044070.png)
