<?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: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/271743#M1771</link>
    <description>&lt;P&gt;I think I may have a hack you can use in certain circumstances, but it depends on two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are 1 and 0 the only possible values for count() in your timeseries?&lt;/LI&gt;&lt;LI&gt;How many consecutive&amp;nbsp;&lt;EM&gt;null&lt;/EM&gt; values occur in the data? Is it relatively few (10 or fewer) or do you have longer strings of &lt;EM&gt;null&lt;/EM&gt; values?&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 06 Mar 2025 14:43:44 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-03-06T14:43:44Z</dc:date>
    <item>
      <title>Return Last Known Value in Time-Series Using DQL makeTimeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/270503#M1732</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data/logs for job run status, which logs records for "Success" or "Fail" each run - job runs anytime base on schedule (e.i. 1-3 times a day and/or can be run manually). i'm tying to use makeTimeseries to capture alerts for Fail runs, but due to the nature of job run, there would be timeseries that won't have data or NULL (e.i. "&lt;EM&gt;| makeTimeseries countIf(status=="Fail"), interval: 1m, by: {task_name}&lt;/EM&gt;" &amp;gt;&amp;gt; count(): 0, null, null, 1, null, null, null, 0, null, null .... ) ..&lt;STRONG&gt; 1 = Fail, 0 = Success, null = no data.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Is there a way in makeTimeseries where if the result of the count is null, set/change null with the "Last Known Value" from the series? so if the timeseries result is like this "count(): 0, &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;null, null&lt;/FONT&gt;,&lt;/STRONG&gt;&lt;/FONT&gt; 1, &lt;FONT color="#FF0000"&gt;null, null, null&lt;/FONT&gt;, 0, &lt;FONT color="#339966"&gt;&lt;STRONG&gt;null, null,&lt;/STRONG&gt;&lt;/FONT&gt; ..." i would like it to be changes like this "count(): 0, &lt;STRONG&gt;&lt;FONT color="#339966"&gt;0, 0&lt;/FONT&gt;&lt;/STRONG&gt;, 1, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1, 1, 1&lt;/STRONG&gt;&lt;/FONT&gt;, 0, &lt;FONT color="#339966"&gt;&lt;STRONG&gt;0, 0&lt;/STRONG&gt;&lt;/FONT&gt;, ...". using &lt;STRONG&gt;default:0 &lt;/STRONG&gt;won't work in my case as it will also convert all "nulls" after value "1" to zero.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:30:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/270503#M1732</guid>
      <dc:creator>dekidekide</dc:creator>
      <dc:date>2025-12-18T12:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/270601#M1735</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would doing a coalesce() funtion work for you in this scenario? Here are a couple of simple examples:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asamay_0-1740073925383.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26558i1C4E8D0BB9CB142A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asamay_0-1740073925383.png" alt="asamay_0-1740073925383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also here is the documentation on that function:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/functions/conditional-functions" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 17:53:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/270601#M1735</guid>
      <dc:creator>asamay</dc:creator>
      <dc:date>2025-02-20T17:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/270742#M1738</link>
      <description>&lt;P&gt;Have you considered using summarize() command rather than makeTimeSeries()?&lt;/P&gt;&lt;P&gt;You could combine it with&amp;nbsp;the takeLast() function to show the most recent status:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| summarize latestStatus = takeLast(status), by:{task_name}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you could also count up the number of observed log records by task_name and status:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| summarize count(), by: {task_name, status}&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 23:10:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/270742#M1738</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-02-21T23:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/271003#M1748</link>
      <description>&lt;P&gt;thanks, asamay/marco. i actually gonna need it in time series as we will use davis ai/anomaly detector (which requires time series). i also tried&amp;nbsp;&lt;SPAN&gt;coalesce() function but i can't get the desired result.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 01:48:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/271003#M1748</guid>
      <dc:creator>dekidekide</dc:creator>
      <dc:date>2025-02-26T01:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/271743#M1771</link>
      <description>&lt;P&gt;I think I may have a hack you can use in certain circumstances, but it depends on two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are 1 and 0 the only possible values for count() in your timeseries?&lt;/LI&gt;&lt;LI&gt;How many consecutive&amp;nbsp;&lt;EM&gt;null&lt;/EM&gt; values occur in the data? Is it relatively few (10 or fewer) or do you have longer strings of &lt;EM&gt;null&lt;/EM&gt; values?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 06 Mar 2025 14:43:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/271743#M1771</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-03-06T14:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/284416#M2494</link>
      <description>&lt;P&gt;I have a similar requirement and was wondering if a solution was ever found for this thread.&lt;/P&gt;&lt;P&gt;Requirement - Create a Davis detector that can raise/clear problems based on log entries that represent a bad/good states.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;Raise problem when a log entry representing a bad state is seen in the logs.&lt;/P&gt;&lt;P&gt;Keep the problem alive&amp;nbsp; &amp;nbsp; &amp;nbsp;(Bonus points for being able to keep the problem alive if its a long time between the bad log entry and the good log entry - hours/days)&lt;/P&gt;&lt;P&gt;Then clear the problem when a log entry representing a good state is seen in the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 05:35:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/284416#M2494</guid>
      <dc:creator>ADawson</dc:creator>
      <dc:date>2025-08-21T05:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/291821#M2937</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/86983"&gt;@dekidekide&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/64193"&gt;@ADawson&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what works best for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:30:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/291821#M2937</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2025-12-18T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: DQL makeTimeseries how to return Last Known Value from series for time with no data/NULL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/291878#M2958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67399"&gt;@IzabelaRokita&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;That would be great if you can provide some help.&lt;/P&gt;&lt;P&gt;We have a partial solution which is OK for&amp;nbsp;short duration issues.&lt;/P&gt;&lt;P&gt;However, Im worried if we experience a longer issue such as on a Friday night where there may be no further log entries written for a few days. I would like the related problem to still be open on Monday if there is still an issue.&lt;/P&gt;&lt;P&gt;And I was hoping to avoid added complexities such as Business Events or Workflows as a work-around if possible.&lt;/P&gt;&lt;P&gt;Example of Davis Detector query -&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch logs, bucket:{"Xlog"}&lt;BR /&gt;| filter in(XeventId, {"DISCONNECTED", "CONNECTED"})&lt;BR /&gt;| fieldsAdd state = if(XeventId == "DISCONNECTED", 1, else: if(XeventId == "CONNECTED", 0, else: 2 ))&lt;BR /&gt;| makeTimeseries count=count(default: 0), by:{dt.entity.host, host.name}, interval:1m&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 22:25:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Last-Known-Value-in-Time-Series-Using-DQL-makeTimeseries/m-p/291878#M2958</guid>
      <dc:creator>ADawson</dc:creator>
      <dc:date>2025-12-18T22:25:09Z</dc:date>
    </item>
  </channel>
</rss>

