<?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  combine values from two fields in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274044#M1878</link>
    <description>&lt;P&gt;what do you get if you add a new field total_count=processed+errors?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 10:29:06 GMT</pubDate>
    <dc:creator>PacoPorro</dc:creator>
    <dc:date>2025-04-01T10:29:06Z</dc:date>
    <item>
      <title>DQL  combine values from two fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274007#M1876</link>
      <description>&lt;P&gt;How can I create new field called total_count which is the sum of values "processed" and "errors":&lt;/P&gt;&lt;P&gt;fields&lt;BR /&gt;&amp;nbsp; &amp;nbsp; processed = if(isNull(arraySum(processed)),0.00,else:arraySum(processed)),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; errors = if(isNull(arraySum(prefix1errors)),0.00,else:arraySum(prefix1errors)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 23:13:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274007#M1876</guid>
      <dc:creator>stevene1900</dc:creator>
      <dc:date>2025-03-31T23:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: DQL  combine values from two fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274010#M1877</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/71653"&gt;@stevene1900&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either fieldsSummary or Converting into timeseries would help you to achieve this. you can refer the Aggregation Commands section from the document would help you i hope.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/aggregation-commands" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/aggregation-commands&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 06:39:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274010#M1877</guid>
      <dc:creator>AravindhanV</dc:creator>
      <dc:date>2025-04-01T06:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: DQL  combine values from two fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274044#M1878</link>
      <description>&lt;P&gt;what do you get if you add a new field total_count=processed+errors?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 10:29:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274044#M1878</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2025-04-01T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: DQL  combine values from two fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274114#M1880</link>
      <description>&lt;P&gt;I was getting error that "errors" field does not exist. The problem I was running into ultimately was the possibility of null values, which is what "errors" was while "processed" was not null.&lt;/P&gt;&lt;P&gt;Thanks for pushing me in the right direction and glad as easy as just adding the values, which is something that I had tried before but was getting thrown off by the error.&lt;/P&gt;&lt;P&gt;I ended up creating the fields higher up, so that "errors_count" (formerly just "errors") ended up as 0 instead of null.:&lt;/P&gt;&lt;P&gt;| fieldsadd&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;processed_count = if(isNull(arraySum(processed)),0.00,else:arraySum(processed)),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;errors_count = if(isNull(arraySum(prefix1errors)),0.00,else:arraySum(prefix1errors))&lt;BR /&gt;|&amp;nbsp; fields&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; processed_count,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errors_count,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; total_count = processed_count + errors_count&lt;BR /&gt;|&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 16:13:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-combine-values-from-two-fields/m-p/274114#M1880</guid>
      <dc:creator>stevene1900</dc:creator>
      <dc:date>2025-04-01T16:13:30Z</dc:date>
    </item>
  </channel>
</rss>

