<?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 how to find max of a series of reccords in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/how-to-find-max-of-a-series-of-reccords/m-p/211964#M59</link>
    <description>&lt;P&gt;I can use arrayMax to return a series of records each of which is the max of an array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But now I want the max of all these records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;max(arrayMax()) and arrayMax(arrayMax())&amp;nbsp; give an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the final part of the DQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| fields arrayMax(memory)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It give me these results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"records": [&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 75.25303777058919&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 62.775824546813965&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 69.83485221862793&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 61.2065970102946&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 28.884375000000002&lt;BR /&gt;}&lt;BR /&gt;],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how to get the max of these records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 10:16:50 GMT</pubDate>
    <dc:creator>Stephen1_Lee</dc:creator>
    <dc:date>2023-05-30T10:16:50Z</dc:date>
    <item>
      <title>how to find max of a series of reccords</title>
      <link>https://community.dynatrace.com/t5/DQL/how-to-find-max-of-a-series-of-reccords/m-p/211964#M59</link>
      <description>&lt;P&gt;I can use arrayMax to return a series of records each of which is the max of an array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But now I want the max of all these records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;max(arrayMax()) and arrayMax(arrayMax())&amp;nbsp; give an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the final part of the DQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| fields arrayMax(memory)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It give me these results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"records": [&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 75.25303777058919&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 62.775824546813965&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 69.83485221862793&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 61.2065970102946&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"arrayMax(memory)": 28.884375000000002&lt;BR /&gt;}&lt;BR /&gt;],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how to get the max of these records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 10:16:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/how-to-find-max-of-a-series-of-reccords/m-p/211964#M59</guid>
      <dc:creator>Stephen1_Lee</dc:creator>
      <dc:date>2023-05-30T10:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to find max of a series of reccords</title>
      <link>https://community.dynatrace.com/t5/DQL/how-to-find-max-of-a-series-of-reccords/m-p/211989#M60</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/24856"&gt;@Stephen1_Lee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the &lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-commands#summarize" target="_self"&gt;summarize&lt;/A&gt; command should do the trick&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| summarize max(`arrayMax(memory)`)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 05:00:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/how-to-find-max-of-a-series-of-reccords/m-p/211989#M60</guid>
      <dc:creator>Philipp_Kastner</dc:creator>
      <dc:date>2023-05-12T05:00:53Z</dc:date>
    </item>
  </channel>
</rss>

