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 / Desperately need help!...
Power Apps
Answered

Desperately need help! Powerapp filter function doesn't work on one of my sharepoint columns

(0) ShareShare
ReportReport
Posted on by 23

Hello,

 

I have a sharepoint dataset with many columns, 

I try to add a text input to filter the gallery.

 

The filter function works fine if I use:

Filter('24/7 Client',StartsWith('First Name',TextSearchBox1.Text))

 

However the filter function return zero result if replace first name with last name:

Filter('24/7 Client',StartsWith('Last Name',TextSearchBox1.Text))

 

It shows no error at all. I also used the 'Last Name' in card and it works fine:

"Client Name: " & ThisItem.'First Name' & ThisItem.'Last Name'

 

I have checked the sharepoint settings. Both are set as single line text.

 

Anyone has a idea why this is happening?

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Jim213124 

    Make sure you are using the right name.  When you use that formula, you need to specify the column name as it is in SharePoint.  

    First, your column name should have double quotes around it:

        Filter('24/7 Client',StartsWith("Last Name",TextSearchBox1.Text))

     

    Next, try Filter('24/7 Client',StartsWith("Last_x0020_Name",TextSearchBox1.Text))

    If that yields no results, the next question would be, was this originally the Title column?  If so, then try:

       Filter('24/7 Client',StartsWith('Last Name',TextSearchBox1.Text))

     

    Still no joy? Then go into your SharePoint list settings, click on Last Name to review the column definition, then look at the URL - you will see the real name of the field there.

     

    I hope this is helpful for you.

  • Jim213124 Profile Picture
    23 on at

    It turns out that my 'last name' column has a space in the beginning. This causes the startwith function stop working. Stupid mistake.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard