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 Columns- Speci...
Power Apps
Answered

Sort By Columns- Specific Date Value

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I was trying to follow the tutorial listed at: https://powerapps.microsoft.com/en-us/tutorials/function-sort/ 

 

However, I was having issues with sorting a specific column by a specific value. Similar to the tutorial, I wanted to sort my listings to only those that would have an "EventDate" equal to Today().

 

Here is my original code:

 

SortByColumns(Search(Table2, TextSearchBox1.Text, "EventName", "LastName", "FirstName"), "EventDate", If(SortDescending1, Descending, Ascending))

 

I would like it to be something like: "EventDate", [Today()] -- Not sure if it's supposed to be ["Today"] I tried both and couldn't get it working.

 

Thanks for all of your help!

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Should I try to use Filter instead of SortByColumns?

     

    Thank you!

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry, I answered my own question. I used filter and it works properly.

     

    The app is for an event check in. So depending on the last name they enter into the search textbox, and if the event is today, it allows them to check in.

     

    If any one needs help, here's the code I used:

     

    Filter(Table2, LastName = TextSearchBox1.Text, EventDate = Today())

  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Austinct,

     

    I am glad to hear that you have figured out a solution.


    And thanks for sharing it with us.

     

    Anytime you have issues when using PowerApps, please feel free post your issue at here, we are always ready to help.

     

    Best regards,
    Mabel Mao

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard