# Converting DQL into timeseries

**URL:** <https://community.dynatrace.com/t/converting-dql-into-timeseries/47757>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, davis, anomaly-detection, notebooks, logs\
**Created:** [September 17, 2024, 7:20pm UTC](https://community.dynatrace.com/t/converting-dql-into-timeseries/47757 "2024-09-17T19:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [September 19, 2024, 2:27pm UTC](https://community.dynatrace.com/t/converting-dql-into-timeseries/47757/6 "2024-09-19T14:27:08Z")

</div>

_ **makeTimeseries** _ command produces arrays of numbers (track changes of metric value over time), so it will not work with _ **collectDistinct** _ as it produces array of unique user\_id values.  
What would make sense to have metric “number of unique user\_id values” over time. Then you should use&nbsp;_ **countDistinctExact** _ or&nbsp;_ **countDistinctApprox** _ function.

Kris

---

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