<?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: Appending makeTimeSeries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261140#M1387</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41129"&gt;@wmisenhe&lt;/a&gt;&amp;nbsp;, try the&amp;nbsp;dt.davis.problems.snapshots if you are after a longer trend analysis of problems , here is an example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems.snapshots, from:now() - 14d
| filter isnotnull(display_id)
| filter isFalseOrNull(dt.davis.is_duplicate)
| dedup display_id
| fieldsAdd day = bin(timestamp, 24h)
| summarize by:{day, event.status}, count = count()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 00:30:36 GMT</pubDate>
    <dc:creator>p_devulapalli</dc:creator>
    <dc:date>2024-10-31T00:30:36Z</dc:date>
    <item>
      <title>Appending makeTimeSeries</title>
      <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261102#M1383</link>
      <description>&lt;P&gt;I have a query used to show open/resolved problems with a makeTimeseries. I would like to have a comparison of the same information, just a week ago, for trending reasons. Would there be a way to do this? Switching to timeseries? Timeseries has a shift command that may be useful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch dt.davis.problems&lt;BR /&gt;| filter isnotnull(display_id)&lt;BR /&gt;| filter isFalseOrNull(dt.davis.is_duplicate)&lt;BR /&gt;| dedup display_id&lt;BR /&gt;| makeTimeseries&lt;BR /&gt;count = count(),&lt;BR /&gt;spread: timeframe(from: event.start, to: coalesce(event.end, now())),&lt;BR /&gt;by:{event.status}, interval:1h&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| sort event.status desc&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 14:30:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261102#M1383</guid>
      <dc:creator>wmisenhe</dc:creator>
      <dc:date>2024-10-30T14:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Appending makeTimeSeries</title>
      <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261140#M1387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41129"&gt;@wmisenhe&lt;/a&gt;&amp;nbsp;, try the&amp;nbsp;dt.davis.problems.snapshots if you are after a longer trend analysis of problems , here is an example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems.snapshots, from:now() - 14d
| filter isnotnull(display_id)
| filter isFalseOrNull(dt.davis.is_duplicate)
| dedup display_id
| fieldsAdd day = bin(timestamp, 24h)
| summarize by:{day, event.status}, count = count()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 00:30:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261140#M1387</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2024-10-31T00:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Appending makeTimeSeries</title>
      <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261142#M1388</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41129"&gt;@wmisenhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can append a new query of the same data but with a different timeframe. Then within that appended query you can override the timeframe to be the one from the original query. This will allow you to layer 2 timeseries of different timeframes on top of each other. The last thing to do is to change the graph settings to use the timeframes from the data and not the queries as seen below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1730337653956.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24301i9EBEFA049EB50FA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_0-1730337653956.png" alt="Fin_Ubels_0-1730337653956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| filter isnotnull(display_id)
| filter isFalseOrNull(dt.davis.is_duplicate)
| dedup display_id
| makeTimeseries
count = count(),
spread: timeframe(from: event.start, to: coalesce(event.end, now())),
interval:1h
| append [
  fetch dt.davis.problems, from:now()-60d, to:now()-30d
  | filter isnotnull(display_id)
  | filter isFalseOrNull(dt.davis.is_duplicate)
  | dedup display_id
  | makeTimeseries
  countPrev = count(),
  spread: timeframe(from: event.start, to: coalesce(event.end, now())),
  interval:1h
  | fieldsAdd timeframe = timeframe(from:now()-30d, to:now())
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 01:21:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/261142#M1388</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2024-10-31T01:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Appending makeTimeSeries</title>
      <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/276703#M2040</link>
      <description>&lt;P&gt;Sorry to resurrect an old solution - but I'm curious why we don't just have a "shift:" parameter on makeTimeSeries command in DQL?&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 20:22:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/276703#M2040</guid>
      <dc:creator>m3tomlins</dc:creator>
      <dc:date>2025-05-07T20:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Appending makeTimeSeries</title>
      <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/276707#M2041</link>
      <description>&lt;P&gt;I'm not 100% sure but I imagine it is because with the timeseries command you are fetching new records so at that point you can manipulate the timeframe fully and so we can shift. Whereas with makeTimeseries you are turning already fetched records into a timeseries, so the timeframe has already been set at the point where you made your initial fetch.&lt;/P&gt;&lt;P&gt;If I fetch logs between 5am and 6am then my logs will look something like:&lt;/P&gt;&lt;P&gt;timestamp: 2025/05/08 0500, content: some log&lt;BR /&gt;timestamp: 2025/05/08 0530, content: some log&lt;BR /&gt;timestamp: 2025/05/08 0600, content: some log&lt;/P&gt;&lt;P&gt;Now if I run makeTimeseries using these fetched logs, the timeframe is set by the above logs. Yes you can change that timeframe in the makeTimeseries command but if the logs don't fall within, then we're making a timeseries on nothing. I can't really think of a scenario where I'd want shift within makeTimeseries but if you have one I'd be interested in hearing it!&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 23:41:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/276707#M2041</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2025-05-07T23:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending makeTimeSeries</title>
      <link>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/289244#M2745</link>
      <description>&lt;P&gt;For what it's worth, I just ran into this problem and wanted to create a timeshift against log data for comparison purposes while using the maketimeseries command. I do think this has value.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 16:58:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Appending-makeTimeSeries/m-p/289244#M2745</guid>
      <dc:creator>MikeDouglas</dc:creator>
      <dc:date>2025-11-07T16:58:08Z</dc:date>
    </item>
  </channel>
</rss>

