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 Apps / sort by column insert ...
Power Apps
Answered

sort by column insert into function

(0) ShareShare
ReportReport
Posted on by 41

Hi, I'm still fairly new to creating functions in Power apps. I have built a data table that refers to a sharepoint list (lead list). When a word is written in a field (DataCard Value1), the datatable filters out all items from the list in the sharepoint. I would like to sort these in descending order and not ascending. How and where do I insert sort by columns here then?

 

Filter(AddColumns('Lead Liste'; "New Spalte"; Concat('Product name';Value;","));StartsWith(Title; DataCardValue1.Text))

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,434 Most Valuable Professional on at

    Hi @Tobiask1 ,

    You did not mention the field to sort on - just insert it below

    Sort(
     Filter(
     AddColumns(
     'Lead Liste'; 
     "New Spalte"; 
     Concat(
     'Product name';
     Value;
     ","
     )
     );
     StartsWith(
     Title; 
     DataCardValue1.Text
     ),
     YourSortFieldHere,
     Descending
     ) 
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Tobiask1 Profile Picture
    41 on at

    Hey @WarrenBelz

    Unfortunately, my data table is now not displayed at all. What am I doing wrong?

    Tobiask1_0-1644238506066.png

     

  • Tobiask1 Profile Picture
    41 on at

    Tobiask1_1-1644238570666.png

     

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at
    Filter( AddColumns( 'Lead Liste'; "New Spalte"; Concat( 'Product name'; Value; "," ) ); StartsWith( Title; DataCardValue1.Text )), offerdate, Descending )

      

    You are missing a bracket and have on extra at the end try this:

     

    Sort(
                          

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard