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 datatable by ei...
Power Apps
Answered

Filter datatable by either one text input or another

(0) ShareShare
ReportReport
Posted on by 13

Hi, I see a lot of posts about the correct syntax for using multiple filters at the same time. But all I need to do is to filter by whichever textbox is chosen by the user. I have this working fine with the one textbox:

 

This is set to the Item Property of the datatable:  

 

 

Filter([@PT_TrackingDataFinal], StartsWith(so, TextInput1.Text))

 

 

 

But I can't figure out the syntax for adding a second filter to the item property of the datatable so that the user can filter from a different column .  It should filter like this if it were a single filter added to the Item Property:

 

 

Filter([@PT_TrackingDataFinal], StartsWith(PO, TextInput2.Text) 

 

 

 

any help would be appreciated. Thanks

 

 

 

Categories:
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @MikeAS 

     

    Can you try:

     

    Filter([@PT_TrackingDataFinal], StartsWith(so, TextInput1.Text), StartsWith(PO, TextInput2.Text))
  • MikeAS Profile Picture
    13 on at

    AmDev,  Thank you very much. That's what I needed

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Great stuff! - Glad that worked out for you.

     

    Good Luck with the rest of your build! ☘

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