<?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: One missing timeseries metric in DQL query, result in &amp;quot;There are no records&amp;quot; for the whole query in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/240343#M743</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;Thank you for the solution, your awesome suggestion works for my scenario.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 20:50:00 GMT</pubDate>
    <dc:creator>cabeywardhana</dc:creator>
    <dc:date>2024-03-18T20:50:00Z</dc:date>
    <item>
      <title>One missing timeseries metric in DQL query, result in "There are no records" for the whole query</title>
      <link>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/239840#M730</link>
      <description>&lt;P&gt;I have a complex query which is incorporating multiple metrics in one DQL query via multiple joins.&lt;/P&gt;&lt;P&gt;My issue is that if one of the metric(the whole timeseries) is missing, the whole query returns&amp;nbsp;"There are no records"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(metric1)
    interval: 10m
    by: {id}
| join [ 
    timeseries avg(metric2, default:0), nonempty:true,  
    interval: 10m
    by: {id}
], on: {_id}, prefix:"prefix1"
| join [
    timeseries avg(metric3), 
    interval: 10m
    by: {id}
], on: {_id}, prefix:"prefix2"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried adding nonempty and default value to DQL query as suggested &lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/commands/metric-commands#expand--nonempty-parameter" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;for the missing metric without any luck. e.g. metric2 is missing the timeseries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(metric2, default:0), nonempty:true, &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I am expecting is that the complex query will still return a result with the metrics data from other two(available) timeseries + default values for the missing timeseries metric.&amp;nbsp;&lt;BR /&gt;Is this possible ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 04:05:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/239840#M730</guid>
      <dc:creator>cabeywardhana</dc:creator>
      <dc:date>2024-03-14T04:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: One missing timeseries metric in DQL query, result in "There are no records" for the whole query</title>
      <link>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/240084#M735</link>
      <description>&lt;P&gt;Before I attempt to explain, here are my test data. I will use 2 metrics for 2 hosts. First metric is available for both host while second only for one:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1710531718715.png" style="width: 818px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18317i20392CAB98BB73D8/image-dimensions/818x330?v=v2" width="818" height="330" role="button" title="krzysztof_hoja_0-1710531718715.png" alt="krzysztof_hoja_0-1710531718715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I retrieve both metrics using single &lt;EM&gt;&lt;STRONG&gt;timeseries&lt;/STRONG&gt; &lt;/EM&gt;command, the result would look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1710531864807.png" style="width: 810px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18318iBC68349079F984CC/image-dimensions/810x153?v=v2" width="810" height="153" role="button" title="krzysztof_hoja_1-1710531864807.png" alt="krzysztof_hoja_1-1710531864807.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see only one record with pair of metrics is returned for the host where both metrics are available. To have both metrics using such construct, I would use &lt;EM&gt;&lt;STRONG&gt;union:true&lt;/STRONG&gt;&lt;/EM&gt; option of &lt;EM&gt;&lt;STRONG&gt;timeseries&lt;/STRONG&gt; &lt;/EM&gt;command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_2-1710532048690.png" style="width: 807px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18319iD98292EF783B6882/image-dimensions/807x188?v=v2" width="807" height="188" role="button" title="krzysztof_hoja_2-1710532048690.png" alt="krzysztof_hoja_2-1710532048690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this option cases that records/rows when some metrics are missing are not eliminated.&amp;nbsp;Here is how &lt;EM&gt;&lt;STRONG&gt;join&lt;/STRONG&gt;&lt;/EM&gt; command behaves with the same data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_3-1710532179654.png" style="width: 798px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18320iFE3DAEE1DA322C0D/image-dimensions/798x242?v=v2" width="798" height="242" role="button" title="krzysztof_hoja_3-1710532179654.png" alt="krzysztof_hoja_3-1710532179654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But join &lt;EM&gt;&lt;STRONG&gt;command&lt;/STRONG&gt; &lt;/EM&gt;offers also option&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;kind:leftOuter&lt;/STRONG&gt;&lt;/EM&gt; which does not eliminate records returned by basic query where corresponding record from subquery is missing&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_4-1710532345049.png" style="width: 803px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18321iBA2984D5C096667E/image-dimensions/803x235?v=v2" width="803" height="235" role="button" title="krzysztof_hoja_4-1710532345049.png" alt="krzysztof_hoja_4-1710532345049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Of course first query has to provide superset of what subquery returns.&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 19:55:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/240084#M735</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-03-15T19:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: One missing timeseries metric in DQL query, result in "There are no records" for the whole query</title>
      <link>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/240343#M743</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;Thank you for the solution, your awesome suggestion works for my scenario.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 20:50:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/One-missing-timeseries-metric-in-DQL-query-result-in-quot-There/m-p/240343#M743</guid>
      <dc:creator>cabeywardhana</dc:creator>
      <dc:date>2024-03-18T20:50:00Z</dc:date>
    </item>
  </channel>
</rss>

