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 / Filter, SortbyColumns,...
Power Apps
Answered

Filter, SortbyColumns, Search - Help

(0) ShareShare
ReportReport
Posted on by 221

Hello,

       I am trying to do a filter, sortbycolumns, search filter in my gallery but I can not seem to get it to work. 

 

Filter(SortByColumns(Search('[incentive_test].[D_eTime]', 'Search Bar Table of Sub'.Text,"Employee_Display_Name"),"ImportMonth", Descending,"Employee_Display_Name",Ascending),DELETE_IND'.Value ="N")

 

I only want to show the those with the DELETE_IND'.Value ="N" I been messing with it and well I have not been successful. 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    Please consider changing your Formula to the following:

    SortByColumns(
     Search(
     Filter('[incentive_test].[D_eTime]', DELETE_IND'="N"),
     'Search Bar Table of Sub'.Text, "Employee_Display_Name" 
     ),
     "ImportMonth", Descending,
     "Employee_Display_Name",Ascending
    )
    

     

    First, as with the last post, you have DELETE_IND as text.  SQL does not have complex column types, so they would not have a .Value to compare to.  Just compare the text.

     

    Also, the order above is a little more "performance friendly" in that it first filters to only the records to search, then sorts only the records returned from the search.

     

    I hope this is helpful for you.

  • NitroPepsi Profile Picture
    221 on at

    Thank you so much, your formula worked perfectly! 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    Excellent!  Happy to help!  (and thank you for the coffee - love coffee!! )

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard