Is there a way to use max() to grab the maximum value from a column?
I am using the Excel connector and the "List rows present in a table" block.
I am hoping for something like this:
max(body('ListRowsPresentInATable')?['Key'])
Otherwise, I guess I'll loop through the keys and append them to an array variable and max that, but the above approach would be quicker.
Thank you for your assistance.
Love it. Thank you.
Hi @BenDonahue
There is an easy way to do this.
Above expression is as follows:
outputs('List_rows_present_in_a_table')?['body/value'][0]?['Age']
Thanks
@abm ,
Thank you for your help.
Can I impose for a bit more help, please?
I set up the Select block like this:
Then tried to max Key column. This feels like the same issue I had to begin with.
I tried not using a Key column in Select and maxing the outputs, but no luck with that either.
1. Am I using the Select block correctly?
2. What is the syntax in the following Compose block?
Thank you, again, for your help, abm.
Hi @BenDonahue
Read the Excel Rows first. Use the Select action to get all the keys. This will return the array. Then use the max() expression for the array to get the number.
Thanks
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2