# DQL makeTimeSeries Table

**URL:** <https://community.dynatrace.com/t/dql-maketimeseries-table/45432>\
**Category:** DQL\
**Tags:** dql, logs\
**Created:** [May 3, 2024, 7:54pm UTC](https://community.dynatrace.com/t/dql-maketimeseries-table/45432 "2024-05-03T19:54:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelriosST](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@angelriosST](https://community.dynatrace.com/u/angelriosST)\
**Post date:** [May 3, 2024, 7:54pm UTC](https://community.dynatrace.com/t/dql-maketimeseries-table/45432/1 "2024-05-03T19:54:13Z")

</div>

I have this code using makeTimeseries, but I want each count value to be displayed in a different row so I can display it as a table or as a bar chart and not in an array in a single row.

fetch logs  
| filter matchesPhrase(content, “is suspected as having”)  
| parse content, “”"DATA “Cluster member " DATA STRING:Server “””  
| makeTimeseries count=count(), by:{interval:10m}

 ![angelriosST_0-1714765967990.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f502984975d10cdcbc3a7567132453dd73c58d78.png)

---

<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:** [May 6, 2024, 5:57pm UTC](https://community.dynatrace.com/t/dql-maketimeseries-table/45432/2 "2024-05-06T17:57:31Z")

</div>

If it is enough to display in a table only intervals where there is data and skip intervals where there were not matching log lines, using _ **summarize** _ instead of _ **makeTimeseries** _ will do the job:

```markup
| summarize {count=count()}, by: {timestamp=bin(timestamp, 10m)}

```

Example result on my data looks like:

 ![krzysztof_hoja_0-1715017912142.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/6/66400ccccc3ae9c275943bfb02fc087efb3036b3.png)

If you need all timestamps also these without matching records which you see as empty element in array, it is possible right only via some trick described here:&nbsp;[https://community.dynatrace.com/t5/DQL/Add-the-interval-time-to-a-timeseries-array/m-p/233181/highlight/true#M490](https://community.dynatrace.com/post/233181)  
But we are already working on easy way of proper expanding timeseries produced by _ **timeseries** _ and _ **makeTimeseries** _ commands without loosing context of time for each element

Kris

---

<div class="post-metadata">

**Author:** ![angelriosST](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@angelriosST](https://community.dynatrace.com/u/angelriosST)\
**Post date:** [May 6, 2024, 6:23pm UTC](https://community.dynatrace.com/t/dql-maketimeseries-table/45432/3 "2024-05-06T18:23:04Z")

</div>

Thank you very much for your help
