<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic makeTimeSeries keep asking me to provide value for optional time parameter in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/makeTimeSeries-keep-asking-me-to-provide-value-for-optional-time/m-p/301944#M3434</link>
    <description>&lt;P&gt;I have created an OpenPipeline and try to manipulate the data to create a TimeSeries for web request count over time and sum for total web requests within a set time period (vary with the time period set in dashboard)&lt;/P&gt;&lt;P&gt;I have tried to use the following DQL&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries { sum(webrequest), value.A = avg(webrequest, scalar: true) }, by: { azure.location, duration, server.address, TenantID, Tenant, url.path, k8s.cluster.name, k8s.namespace.name, k8s.workload.name, dt.host_group.id, dt.entity.service }
| fieldsAdd dt.entity.service.name = entityName(dt.entity.service)
| fieldsAdd Tenant = if (tolong(TenantID) == 1, "Country A")
| fieldsAdd Tenant = if (tolong(TenantID) == 2, "Country B", else:Tenant)
| fieldsAdd Tenant = if (tolong(TenantID) == 3, "Country C", else:Tenant)
| filterOut isNull(Tenant)
| makeTimeSeries webrequestcount = count(), by:{ TenantID, Tenant }
| fieldsAdd sum_webrequestcount = arraySum(webrequestcount)
| sort sum_webrequestcount desc&lt;/LI-CODE&gt;&lt;P&gt;However, it returns the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1784107814961.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33678iE6EF0F7A31E1FB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1784107814961.png" alt="Hillman_0-1784107814961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check the data by comment out those 3 makeTimeSeries statments, the data does include timestamp data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_1-1784107942906.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33679i746266AF8857F0F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_1-1784107942906.png" alt="Hillman_1-1784107942906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why does that happen?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2026 01:50:07 GMT</pubDate>
    <dc:creator>Hillman</dc:creator>
    <dc:date>2026-07-16T01:50:07Z</dc:date>
    <item>
      <title>makeTimeSeries keep asking me to provide value for optional time parameter</title>
      <link>https://community.dynatrace.com/t5/DQL/makeTimeSeries-keep-asking-me-to-provide-value-for-optional-time/m-p/301944#M3434</link>
      <description>&lt;P&gt;I have created an OpenPipeline and try to manipulate the data to create a TimeSeries for web request count over time and sum for total web requests within a set time period (vary with the time period set in dashboard)&lt;/P&gt;&lt;P&gt;I have tried to use the following DQL&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries { sum(webrequest), value.A = avg(webrequest, scalar: true) }, by: { azure.location, duration, server.address, TenantID, Tenant, url.path, k8s.cluster.name, k8s.namespace.name, k8s.workload.name, dt.host_group.id, dt.entity.service }
| fieldsAdd dt.entity.service.name = entityName(dt.entity.service)
| fieldsAdd Tenant = if (tolong(TenantID) == 1, "Country A")
| fieldsAdd Tenant = if (tolong(TenantID) == 2, "Country B", else:Tenant)
| fieldsAdd Tenant = if (tolong(TenantID) == 3, "Country C", else:Tenant)
| filterOut isNull(Tenant)
| makeTimeSeries webrequestcount = count(), by:{ TenantID, Tenant }
| fieldsAdd sum_webrequestcount = arraySum(webrequestcount)
| sort sum_webrequestcount desc&lt;/LI-CODE&gt;&lt;P&gt;However, it returns the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1784107814961.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33678iE6EF0F7A31E1FB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1784107814961.png" alt="Hillman_0-1784107814961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check the data by comment out those 3 makeTimeSeries statments, the data does include timestamp data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_1-1784107942906.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33679i746266AF8857F0F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_1-1784107942906.png" alt="Hillman_1-1784107942906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why does that happen?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2026 01:50:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/makeTimeSeries-keep-asking-me-to-provide-value-for-optional-time/m-p/301944#M3434</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2026-07-16T01:50:07Z</dc:date>
    </item>
  </channel>
</rss>

