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

Power Apps - Filter then Search

(0) ShareShare
ReportReport
Posted on by 17

I have a List that shows an Item Title, the Department it applies to, and an "Added" date field. (couple of other fields, but they display based on these three).

We don't want items that are older than 14 days to show.

We have a TextSearchBox that uses Search in the Gallery to be able to type in words, letters, partial strings, etc. and see the related item (for example, they type in "Youth" and they see the title "Youth Mental Health"; or they type in Health Services and see all items related to the Health Services department.

 

I've been scouring the web and these forums, but can't seem to find the right code to implement the filter first, then the search function. Do I need to try to implement the date range filter in the On Visible control for the screen, and then the Search in the Gallery? Or is there some way to implement a Filter('data source',Today()-14,Search('data source', Title, Deparment)?

 

Thanks.

Categories:
I have the same question (0)
  • DM-20081516-0 Profile Picture
    17 on at

    Actually, it occurs to me that I could/should use the Created field rather than a new column that does basically the same thing....

  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Mercer - see the pattern below:

     

    Search(
     Filter(
     'Your Data',
     'Your Added Date Field' >= Today() - 14
     ),
     TextSearchBox.Text,
     Column1,
     Column2,
     Column3
    )

     

    Note that the Search function is not delegable, and neither is it delegable to use "Today() - 14"

  • DM-20081516-0 Profile Picture
    17 on at

    Thank you, Imri-Ami Khan! Worked perfectly. Made me feel kinda stupid for not figuring that out on my own. 🙂

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard