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 / Search DataTable from ...
Power Apps
Unanswered

Search DataTable from multiple columns

(0) ShareShare
ReportReport
Posted on by 118

Hi Folks,

 

I have a DataTable (Excel DataSource) with multiple columns and need to filter/search from all of columns from 1 TextInput. But it works only for 1 column 

How can I change it well? 

Filter(Table5,StartsWith(Text('SERIP Progress'),TextInput4.Text))

Yerlasdutco_0-1669030102686.png

 

 

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Yerlasdutco 

     

    Use the search function for this.

     

    Search( Table, SearchString, Column1 [, Column2, ... ] )

     

    In your case:

    Search( Table3, TextInput4.Text, 'Project Title','Project No.' )

     

    Detailed documentation here:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup

     

  • Yerlasdutco Profile Picture
    118 on at

    @cha_cha 

     

    Tried and not working for me 

    Yerlasdutco_0-1669030761010.png

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    What's the name of your data source?

  • Yerlasdutco Profile Picture
    118 on at

    @cha_cha 

     

    Table5

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello, 

     

    can you pass me your source data so I can try to replicate it here? It's a bit tricky guessing certain words.

  • Yerlasdutco Profile Picture
    118 on at

    @cha_cha 

    Sure, is excel file. Table5 is MCP sheet

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Yerlasdutco 

     

    I was testing your data source and I think it's not searching because it's from an Excel Data Source. I tried Filter function too but it still the same.

     

    A workaround that I did was to move to a Collection and Filter the collection.

    ClearCollect(TableX,Table5)

    Please watch this short clip to see what happens. I put Table5 data to TableX collection

    https://youtu.be/Yxx7RYiEBdQ

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Yerlasdutco

    Excel is a terrible datasource, for many reasons. See https://www.google.com/url?sa=t&source=web&rct=j&url=https://m.youtube.com/watch%3Fv%3DRtmZM3tm2Zs&ved=2ahUKEwjzkJuAvL_7AhVDIkQIHaRfATYQo7QBegQIBxAB&usg=AOvVaw1d8T7aJR_7eBmvEQZw4men

    @cha_cha 's solution will work but you likely will run into other problems with it. I suggest that you move it to SharePoint. SharePoint also has some limitations but not like Excel

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard