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 with SharePoint...
Power Apps
Answered

Filter with SharePoint data source

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am working on a simple help ticket search app. I got it to work with the original excel data source, but the plan is to now move to a SharePoint data source. The data still fills in, and I can see and scroll through my gallery, but when I try to search any ticket number it comes up blank.

 

Here is the code for the SharePoint version:

SortByColumns(Filter([@testtracker], TextInput1.Text in "TicketNumber"),"Title",If(true,Descending,Ascending))

 

And the Excel version:

SortByColumns(Filter([@Table1],TextInput1.Text in 'Ticket No.'),"Status",If(true,Descending,Ascending))

 

Any guidance would be greatly appreciated!

 

Thanks,

Jordan

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    I would do it like this.  The double quotations beside ticket number are deleted because we want to use values in that column not the actual word "TicketNumber.  Then I replaced IN with the STARTSWITH function improve searchability.

     

    SortByColumns(
     Filter([@testtracker], StartsWith(TicketNumber, TextInput1.Text),
     "Title",
     Descending
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @mdevaney,

     

    I tried the updated code, but it does not identify TicketNumber in the SharePoint list, and the gallery comes up blank. I've attached a screen clip of the headers of the SharePoint list as well. Also a screen clip of the code to show where the errors are highlighted.

     

    It just might be something weird with the SharePoint list on my end as well, as I am new to PowerApps and still trying to learn.

     

    Thanks,

     

    Echo1409

    title_help.PNG
    code_help.PNG
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Did you rename the column from Title to TicketNumber?

     

    In a strange mechanism, power apps can only recognize the initial column name of SharePoint list, even if column has been already renamed it, so please try this code:

     

    SortByColumns(
     Filter([@testtracker], StartsWith(Title, TextInput1.Text),
     "Title",
     Descending
    )

     

    Hope this helps.

    Sik

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-siky-msft,

     

    Thanks! That worked. I'll keep that in mind for the future, and mark this as solved.

     

    -Echo1409

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard