# makeTimeSeries

**URL:** <https://community.dynatrace.com/t/maketimeseries/52668>\
**Category:** DQL\
**Tags:** dql\
**Created:** [July 28, 2025, 11:51am UTC](https://community.dynatrace.com/t/maketimeseries/52668 "2025-07-28T11:51:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynacondused](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dynacondused](https://community.dynatrace.com/u/dynacondused)\
**Post date:** [July 28, 2025, 11:51am UTC](https://community.dynatrace.com/t/maketimeseries/52668/1 "2025-07-28T11:51:31Z")

</div>

Hi, trying to use makeTimeSeries but it doesn’t seem to allow the success field I added below

fetch bizevents  
| filter eventType == “my-event”

| makeTimeseries {  
&nbsp; &nbsp; &nbsp; &nbsp;started = countDistinct(if(pathname == “/started”, clientIPAddress), default: 0),  
&nbsp; &nbsp; &nbsp; &nbsp;completed= countDistinct(if(pathname == “/completed”, clientIPAddress), default: 0)

success = (completed/started) \* 100}  
| fieldsRemove started, completed

---

<div class="post-metadata">

**Author:** ![Cameron-Leong](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@Cameron-Leong](https://community.dynatrace.com/u/Cameron-Leong)\
**Post date:** [July 28, 2025, 4:42pm UTC](https://community.dynatrace.com/t/maketimeseries/52668/2 "2025-07-28T16:42:33Z")

</div>

Hello,  
In order to create a new field that charts _completed_/_started_ over time, you’ll need to divide each value of _completed_ by the corresponding value in _started_, which can be done using _iCollectArray._

```auto
fetch bizevents
| filter eventType == "my-event"
| makeTimeseries {
       started = countDistinct(if(pathname == "/started", clientIPAddress), default: 0),
       completed= countDistinct(if(pathname == "/completed", clientIPAddress), default: 0)
 }
<strong>| fieldsAdd success = iCollectArray(completed[]/started[])</strong>
| fieldsRemove started, completed

```
