# TimeSeries DQL -join

**URL:** <https://community.dynatrace.com/t/timeseries-dql-join/49505>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, timeseries\
**Created:** [December 27, 2024, 4:13pm UTC](https://community.dynatrace.com/t/timeseries-dql-join/49505 "2024-12-27T16:13:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [December 30, 2024, 7:51am UTC](https://community.dynatrace.com/t/timeseries-dql-join/49505/2 "2024-12-30T07:51:55Z")

</div>

There are few ways to achieve it, but probably the easiest one is via associating timestamp with each of elements of produced timeseries (use of _**start()**_ function and building array of records), “unwrapping” them and building single timeseries one again.

```markup
fetch bizevents, from: "2023-12-01T00:00:00.000-0500", to:now()
| filter tipo =="cloudfront_requests_sum_by_region" 
| fieldsAdd timestamp=toTimestamp(timeantiguo)+5h 
| makeTimeseries {Request1=sum(value), timestamp=start()}, interval:24h, from: toTimestamp("2023-12-01T00:00:00.000-0500"), to:toTimestamp("2024-10-30T00:00:00.000-0500")
| append [
timeseries {Request1=sum(cloud.aws.cloudfront.requests_sum_by_region), timestamp=start()}, interval:24h, from: "2024-10-30T00:00:00.000-0500", to:now()
]

| fieldsAdd d=record(timestamp=timestamp[], Request1=Request1[])
| expand d 
| makeTimeseries Request1=sum(d[Request1]), time:d[timestamp], interval:24h, from: toTimestamp("2023-12-01T00:00:00.000-0500"), to: now()

```

Possible alternatives is via:

```markup
| summarize Request1=sum(Request1[]), by: {timeframe, interval}

```

but this requires aligning timeframes first and making Request1 arrays of the same lengths and placing values in time relevant slots. This could be achieved by using exactly the same timeframes in source queries (fetch bizevents and timeframes) and&nbsp; then zeroing values if one of arrays if there is overlap

---

_[View the full topic](https://community.dynatrace.com/t/timeseries-dql-join/49505)._
