# DQL - show detected services number trend

**URL:** <https://community.dynatrace.com/t/dql-show-detected-services-number-trend/49177>\
**Category:** DQL\
**Tags:** dql\
**Created:** [December 3, 2024, 4:18pm UTC](https://community.dynatrace.com/t/dql-show-detected-services-number-trend/49177 "2024-12-03T16:18:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paolo\_fumanelli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/paolo_fumanelli/32/1037_2.png) [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Post date:** [December 6, 2024, 11:50am UTC](https://community.dynatrace.com/t/dql-show-detected-services-number-trend/49177/3 "2024-12-06T11:50:51Z")

</div>

Brilliant! Thanks a lot, was not aware about start() function.

I adapted it this way:

timeseries {req=sum(dt.service.request.count), timestamp=start()}, by:{dt.entity.service}, from:now()-10d, to:now(), interval:1d  
| fieldsAdd d=record(req=req[], timestamp=timestamp[]) | expand d  
| fieldsAdd value = d[req], ts = d[timestamp]  
| filterOut isNull(value)  
| fields ts, dt.entity.service, value  
| summarize countDistinct(dt.entity.service), by:{ts}

I just a summarize by timestamp instead of making a timeseries. I take advantage of this inquiry to ask when it is more convenient makeTimeseries solution or a summarize?

Thanks!  
Paolo

---

_[View the full topic](https://community.dynatrace.com/t/dql-show-detected-services-number-trend/49177)._
