Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Sort Collections alphabetically and Get the first row

(0) ShareShare
ReportReport
Posted on by 182

The collection name is colSelectedChecklist and Column Name is EHSCheckList.

2021-06-29_17-15-51.png

Using the following  formula, I can get the first row  of the collection. But it is not in alphabetical order.

First(colSelectedChecklist).EHSCheckList.Result

 

Tried below Sort/SortColumn formulas. But it is not working.

 

Sort(colSelectedChecklist,EHSCheckList,Ascending)

First(Sort(colSelectedChecklist,EHSCheckList,Ascending))

SortByColumns(Distinct(colSelectedChecklist,EHSCheckList),"Result",Ascending))

 

 

 

  • IPC_ahaas Profile Picture
    IPC_ahaas 1,264 on at
    Re: Sort Collections alphabetically and Get the first row

    Did you ever get this working?

  • Sajith Profile Picture
    Sajith 182 on at
    Re: Sort Collections alphabetically and Get the first row

    Getting the following error for - First(SortByColumn(colSelectedChecklist,"EHSCheckList",Ascending))

     

    2021-09-21_12-59-07.png

  • zmansuri Profile Picture
    zmansuri 6,048 on at
    Re: Sort Collections alphabetically and Get the first row

    First(SortByColumn(colSelectedChecklist,"EHSCheckList",Ascending))

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard