Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to obtain Max value/Max()from a share point list column without error

(0) ShareShare
ReportReport
Posted on by

I am using the below as default of a textinput box

"Data of Date : " & Text(Max(KomtraxImport,F11),"dd-mm-yyyy")

 

Its bring the correct result (it bring the max date of that column), but has a error on it, below is the image

 

MIA27_0-1679125197270.png

 

Worried as the current number of records is 2356 and may grow little in the near future.

 

Kindly advise, is there any other way to obtain the same result without error

 

 

 

  • Verified answer
    ganeshsanap Profile Picture
    1,551 on at
    Re: How to obtain Max value/Max()from a share point list column without error

    @MIA27 Use formula like below (with "DateColumnName" - double quotes around column name inside SortByColumns function only): 

     

    "Data of Date : " & Text(First(SortByColumns(SharePointListName, "DateColumnName", SortOrder.Descending)).DateColumnName,"dd-mm-yyyy")

     


    Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

    For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to obtain Max value/Max()from a share point list column without error

    You only need double quotes on the field if you use SortByColumns() 

  • MIA27 Profile Picture
    on at
    Re: How to obtain Max value/Max()from a share point list column without error

    Sir,

     

    Could not understand the part of your reply "Not needed for a simple Sort(). "

    please guide.

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to obtain Max value/Max()from a share point list column without error

    @MIA27

    Use double quotes around "F11" when using SortByColumns(). Not needed for a simple Sort(). 

  • MIA27 Profile Picture
    on at
    Re: How to obtain Max value/Max()from a share point list column without error

    sorry, it produces error of column name, below is the error. pls guide

     

    MIA27_0-1679131328311.png

     

  • ganeshsanap Profile Picture
    1,551 on at
    Re: How to obtain Max value/Max()from a share point list column without error

    @MIA27 Try using formula in this format: 

     

    "Data of Date : " & Text(First(SortByColumns(SharePointListName, DateColumnName, SortOrder.Descending)).DateColumnName,"dd-mm-yyyy")

     


    Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

    For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard