<?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 Re: Expand DQL TimeFrame in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Expand-DQL-TimeFrame/m-p/254489#M1152</link>
    <description>&lt;P&gt;It is doable using using special &lt;STRONG&gt;&lt;EM&gt;start()&lt;/EM&gt;&lt;/STRONG&gt; or &lt;STRONG&gt;&lt;EM&gt;end()&lt;/EM&gt;&lt;/STRONG&gt; functions which can be used in &lt;EM&gt;&lt;STRONG&gt;timeseries&lt;/STRONG&gt; &lt;/EM&gt;command to produce timeseries with timestamps and use of &lt;EM&gt;&lt;STRONG&gt;expand&lt;/STRONG&gt; &lt;/EM&gt;command. &lt;EM&gt;&lt;STRONG&gt;Expand&lt;/STRONG&gt; &lt;/EM&gt;without additions I mentioned of course works, but you will loose time information for datapoint.&lt;BR /&gt;&lt;BR /&gt;Here is example query on demo data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries cpu=avg(dt.host.cpu.usage), t=start()
| fieldsAdd cput = record(cpu=cpu[], t=t[])
| expand cput
| fields cpu=cput[cpu], t=cput[t]&lt;/LI-CODE&gt;&lt;P&gt;and result looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1724932637078.png" style="width: 718px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22094i53D0E2F3B6D41EF8/image-dimensions/718x490?v=v2" width="718" height="490" role="button" title="krzysztof_hoja_0-1724932637078.png" alt="krzysztof_hoja_0-1724932637078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I think some comparisons can be also made using timeseries (arrays) without expanding as corresponding values have same index in the arrays). What comparison do you want to make?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 11:59:25 GMT</pubDate>
    <dc:creator>krzysztof_hoja</dc:creator>
    <dc:date>2024-08-29T11:59:25Z</dc:date>
    <item>
      <title>Expand DQL TimeFrame</title>
      <link>https://community.dynatrace.com/t5/DQL/Expand-DQL-TimeFrame/m-p/253770#M1140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create a row-by-row comparison in DQL. However, the query so far is a time frame and hence one row. I want to create a row for each interval in the time frame. But I can't find a way to expand this time frame. Does anyone know how I can create a new row for each interval?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This the query so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;timeseries ThisWeek = avg(log.payment.amounteur),&lt;BR /&gt;from: now() -30m,&lt;BR /&gt;by: { payment.status, payment.airline },&lt;BR /&gt;filter: { payment.status == "APPROVED"&lt;BR /&gt;AND payment.airline == "KL" }&lt;BR /&gt;| join on: { payment.status, payment.airline },&lt;BR /&gt;[timeseries LastWeek = avg(log.payment.amounteur),&lt;BR /&gt;by: { payment.status, payment.airline }, shift: -24h],&lt;BR /&gt;fields: {LastWeek}&lt;BR /&gt;| fields timeframe, ThisWeek, LastWeek&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:06:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Expand-DQL-TimeFrame/m-p/253770#M1140</guid>
      <dc:creator>WessOtter</dc:creator>
      <dc:date>2024-08-21T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expand DQL TimeFrame</title>
      <link>https://community.dynatrace.com/t5/DQL/Expand-DQL-TimeFrame/m-p/254489#M1152</link>
      <description>&lt;P&gt;It is doable using using special &lt;STRONG&gt;&lt;EM&gt;start()&lt;/EM&gt;&lt;/STRONG&gt; or &lt;STRONG&gt;&lt;EM&gt;end()&lt;/EM&gt;&lt;/STRONG&gt; functions which can be used in &lt;EM&gt;&lt;STRONG&gt;timeseries&lt;/STRONG&gt; &lt;/EM&gt;command to produce timeseries with timestamps and use of &lt;EM&gt;&lt;STRONG&gt;expand&lt;/STRONG&gt; &lt;/EM&gt;command. &lt;EM&gt;&lt;STRONG&gt;Expand&lt;/STRONG&gt; &lt;/EM&gt;without additions I mentioned of course works, but you will loose time information for datapoint.&lt;BR /&gt;&lt;BR /&gt;Here is example query on demo data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries cpu=avg(dt.host.cpu.usage), t=start()
| fieldsAdd cput = record(cpu=cpu[], t=t[])
| expand cput
| fields cpu=cput[cpu], t=cput[t]&lt;/LI-CODE&gt;&lt;P&gt;and result looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1724932637078.png" style="width: 718px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22094i53D0E2F3B6D41EF8/image-dimensions/718x490?v=v2" width="718" height="490" role="button" title="krzysztof_hoja_0-1724932637078.png" alt="krzysztof_hoja_0-1724932637078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I think some comparisons can be also made using timeseries (arrays) without expanding as corresponding values have same index in the arrays). What comparison do you want to make?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 11:59:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Expand-DQL-TimeFrame/m-p/254489#M1152</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-08-29T11:59:25Z</dc:date>
    </item>
  </channel>
</rss>

