web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Max Number from ar...
Power Automate
Unanswered

Get Max Number from array Variable

(0) ShareShare
ReportReport
Posted on by 215

Hi 

I am creating a flow that need to find max number from the SharePoint list .

I can get Array of all the numbers but how to identify Max number . Please find the attachment 

 

Also tried like :  MAX(Output(VarMax)), but it getting error . Please help me 

Array .jpg

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Get Max Number from array Variable

    Hey @ursNani 

     

    The reason you are getting an error is because the values you are getting are of string data type. And max expects its input to be of integer or float type.

     

    So try this:

    In compose 1 I have added your data.

    Then in Select, I have passed output of compose and I have used this expression 

    int(item())
    To convert all the items to integer type, you can also use float(item())
    At the end using max function on the body of the select: max(body('Select'))

    Sundeep_Malik_0-1670401804840.png

    Output:

    Sundeep_Malik_2-1670401940527.png

     

     

    Sundeep_Malik_1-1670401930462.png

     

     

    To get the Select action like me just click on that:

    Sundeep_Malik_3-1670401996880.png

    I hope this helps 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard