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 / 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:
I have the same question (0)
  • 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

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