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 / 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,679 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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard