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

Announcements

News and Announcements icon
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:
  • Sundeep_Malik Profile Picture
    6,501 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard