# how to find max of a series of reccords

**URL:** <https://community.dynatrace.com/t/how-to-find-max-of-a-series-of-reccords/39703>\
**Category:** DQL\
**Tags:** dql, latest-dynatrace\
**Created:** [May 11, 2023, 5:51pm UTC](https://community.dynatrace.com/t/how-to-find-max-of-a-series-of-reccords/39703 "2023-05-11T17:51:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen1\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Stephen1\_Lee](https://community.dynatrace.com/u/Stephen1_Lee)\
**Post date:** [May 11, 2023, 5:51pm UTC](https://community.dynatrace.com/t/how-to-find-max-of-a-series-of-reccords/39703/1 "2023-05-11T17:51:59Z")

</div>

I can use arrayMax to return a series of records each of which is the max of an array.

But now I want the max of all these records.

max(arrayMax()) and arrayMax(arrayMax())&nbsp; give an error.

Here is the final part of the DQL.

| fields arrayMax(memory)

It give me these results.

“records”: [  
{  
“arrayMax(memory)”: 75.25303777058919  
},  
{  
“arrayMax(memory)”: 62.775824546813965  
},  
{  
“arrayMax(memory)”: 69.83485221862793  
},  
{  
“arrayMax(memory)”: 61.2065970102946  
},  
{  
“arrayMax(memory)”: 28.884375000000002  
}  
],

So how to get the max of these records?

Thank you

---

<div class="post-metadata">

**Author:** ![Philipp\_Kastner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/philipp_kastner/32/28797_2.png) [@Philipp\_Kastner](https://community.dynatrace.com/u/Philipp_Kastner)\
**Post date:** [May 12, 2023, 5:00am UTC](https://community.dynatrace.com/t/how-to-find-max-of-a-series-of-reccords/39703/2 "2023-05-12T05:00:53Z")

</div>

Hi&nbsp;[@Stephen1\_Lee](https://community.dynatrace.com/user/24856)

I believe the [summarize](https://www.dynatrace.com/support/help/shortlink/dql-commands#summarize) command should do the trick

```markup
| summarize max(`arrayMax(memory)`)

```

Kind regards,  
Philipp
