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 by sharepoint i...
Power Apps
Unanswered

filter by sharepoint id column

(0) ShareShare
ReportReport
Posted on by 776

Hi Experts,

 

How to add filter for sharepoint ID column 

 

User should be able to search the gallery using sharepoint ID number

SortByColumns(Filter('DWP Exceptions Tracker',StartsWith('Customer Name',InputSearchID.Text)),"Created",Ascending)

 

AshishJaiswal_0-1649690000239.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @AshishJaiswal ,

     

    SharePoint list ID column is number type, so the formula could be:

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     StartsWith('Customer Name',InputSearchID.Text)
     ||
     ID = Value(nputSearchID.Text)
     ),
     "Created",
     Ascending
    )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • AshishJaiswal Profile Picture
    776 on at

    @v-jefferni 

    Thank you for replying 


    I have already tried the above formula 

     

    When i use above formula the startswith function stops working - filter only works on ID column and completely ignores startswith 

  • v-jefferni Profile Picture
    on at

    Hi @AshishJaiswal ,

     

    I have tested from my end on Title and ID columns and it worked fine. What type is your Customer Name column?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • AshishJaiswal Profile Picture
    776 on at

    @v-jefferni 

    I am using the same formula it doesn't work for customer column 

    When enter a text in InputSearchID (InputText Control) it does not filter items gallery, it only works from ID column.

    My customer column is a single line of text column 

    AshishJaiswal_0-1650349903415.png

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @AshishJaiswal ,

     

    Please first make sure the single StartsWith part is working for the current search text:

     

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     StartsWith('Customer Name',InputSearchID.Text)
     ),
     "Created",
     Ascending
    )

     

     

    If it works, try below formula instead:

     

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     Or(
     StartsWith('Customer Name',InputSearchID.Text),
     ID = Value(InputSearchID.Text)
     )
     ),
     "Created",
     Ascending
    )

     

     

    I'm wondering about one thing. As you said it works for the ID column, the search text you have entered must be a number. So, are the customer names all begin with numbers as well? This seems a bit strange. Below is my test result screenshot:

    vjefferni_0-1650351981119.png

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • AshishJaiswal Profile Picture
    776 on at

    @v-jefferni 

     

    Hello, the formula does not work, it only works for ID column. My Customer column does not have numbers it has text.

    AshishJaiswal_0-1650354889652.png

     

    AshishJaiswal_1-1650355002360.png

    Works for ID column

    AshishJaiswal_2-1650355089295.png



    BTW this one works for customer column

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     StartsWith('Customer Name',InputSearchID.Text)
     ),
     "Created",
     Ascending
    )
  • v-jefferni Profile Picture
    on at

    Hi @AshishJaiswal ,

     

    May I have a look at the customer name that begins with "test" in your list?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • AshishJaiswal Profile Picture
    776 on at

    @v-jefferni 

    Here you go 

    AshishJaiswal_0-1650358636676.png

     

  • v-jefferni Profile Picture
    on at

    Hi @AshishJaiswal ,

     

    I cannot find the reason and am totally losing the direction. Maybe it's the delegation issue? But there's no delegation warning in that formula...

     

    Please try and:

    1. Check data row limit in settings, change the number to 2000:

    vjefferni_0-1650360386863.png

     

    2. Raise a ticket for more help.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard