<?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 Metrics expression just for fun in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Metrics-expression-just-for-fun/m-p/245573#M32337</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use a metric expression to get a ratio together with a default(0) option like:&lt;/P&gt;
&lt;P&gt;var_total:default(0)/var_part:default(0)&lt;/P&gt;
&lt;P&gt;Dynatrace will, if there is no measurement, do a 0/0! this will result in a "does not exist".&lt;/P&gt;
&lt;P&gt;so you better use an extra default(0) to correct this?&lt;/P&gt;
&lt;P&gt;KR Henk&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 13:52:51 GMT</pubDate>
    <dc:creator>henk_stobbe</dc:creator>
    <dc:date>2024-05-23T13:52:51Z</dc:date>
    <item>
      <title>Metrics expression just for fun</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Metrics-expression-just-for-fun/m-p/245573#M32337</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use a metric expression to get a ratio together with a default(0) option like:&lt;/P&gt;
&lt;P&gt;var_total:default(0)/var_part:default(0)&lt;/P&gt;
&lt;P&gt;Dynatrace will, if there is no measurement, do a 0/0! this will result in a "does not exist".&lt;/P&gt;
&lt;P&gt;so you better use an extra default(0) to correct this?&lt;/P&gt;
&lt;P&gt;KR Henk&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 13:52:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Metrics-expression-just-for-fun/m-p/245573#M32337</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2024-05-23T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics expression just for fun</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Metrics-expression-just-for-fun/m-p/247368#M32612</link>
      <description>&lt;P&gt;Hi henk_stobbe,&lt;/P&gt;&lt;P&gt;To avoid the 0/0 error you mentioned, you can use the &lt;STRONG&gt;default(1)&lt;/STRONG&gt; option in the denominator instead of &lt;STRONG&gt;default(0)&lt;/STRONG&gt;. This way, if there is no measurement, the denominator will be 1, and any number divided by 1 will be that same number, while 0 divided by 1 will be 0 and will not cause an error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is how you can adjust your metric:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var_total:default(0)/var_part:default(1)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoseRomero_1-1717529567595.png" style="width: 738px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20317i8FD2AC39DCF50ADE/image-dimensions/738x450?v=v2" width="738" height="450" role="button" title="JoseRomero_1-1717529567595.png" alt="JoseRomero_1-1717529567595.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 19:34:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Metrics-expression-just-for-fun/m-p/247368#M32612</guid>
      <dc:creator>JoseRomero</dc:creator>
      <dc:date>2024-06-04T19:34:05Z</dc:date>
    </item>
  </channel>
</rss>

