Find Out Maxmimum & Minimum Number in power Apps by all possible way's

 Find Out Maximum & Minimum Number in power Apps






1) Create Any Collection that contains Numbers
2) Maximum Number By Using Max Function - 

Max(MyCollection,Value)

3) Maximum Number By Sort Function

 First(  Sort(MyCollection,Value,SortOrder.Descending)).Value
4) By Using Forall Function

Clear(MaxValueCollection);

Set(method3,
ForAll(
    MyCollection,
    With(
        {currentValue: Value},
        If(
            currentValue > Last(MaxValueCollection).MaxValue,
            Collect(
                MaxValueCollection,
                {MaxValue: currentValue}
            ),
            Collect(
                MaxValueCollection,
                {MaxValue: Last(MaxValueCollection).MaxValue}
            )
        )
    )
);
 Last(MaxValueCollection).MaxValue)



Thanks for reading!

I hope you found this blog on the Microsoft Power Platform helpful! From Power Apps, Power Automate (Cloud & Desktop), Canvas Apps, Model-driven Apps, Power BI, Power Pages, SharePoint, Dynamics 365 (D365), Azure, and more, I cover a wide range of topics to help you harness these powerful tools. Don’t miss out on future tips, tutorials, and insights—hit that subscribe button to get the latest posts right to your inbox. 💌

💬 I’d love to hear your thoughts! Drop a comment below with your questions, ideas, or feedback—let’s get the conversation started!

🔗 Let’s connect and grow together!
Follow me, Ravindra Jadhav, on your favorite platforms for even more content and updates on Microsoft Power Platform and related technologies:

  • 💼 LinkedIn – Let’s network and share ideas!
  • 💻 GitHub – Explore my projects and code.
  • 🐦 Twitter – Stay updated with quick tips and industry news.
  • 📺 YouTube – Watch tutorials and deep dives on Power Platform, Power Apps, Power Automate, and more!

Let’s build something amazing together with Power Platform and Azure! 🚀

Post a Comment

0 Comments