web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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
    on at

    Should I try to use Filter instead of SortByColumns?

     

    Thank you!

  • Verified answer
    Community Power Platform Member Profile Picture
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 321

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 311 Super User 2025 Season 2

Last 30 days Overall leaderboard