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 / Syntax Issues with usi...
Power Apps
Unanswered

Syntax Issues with using Filter/Search function

(0) ShareShare
ReportReport
Posted on by 2
I am attempting to set up a bar chart in my PowerApps application, which is connected to an excel table. The table contains a column named 'Project Type', which contains a list of values including 'Admin Review'. I've tried a few approaches to setting up a filter to only include admin review items, but keep running into errors.
 
I have tried the following:
 
Filter(Table5,'Project Type'="Admin Review")
Filter(Table5; 'Project Type'="Admin Review")
Search(Table5, "Admin Review", 'Project Type')
 
All of these return errors, but the first one returns this error in particular. From what I can tell, the syntax seems correct. Is there something here that I am missing? I've looked through some of the other similar questions posted here but haven't figured out a solution.
 
Error when trying to retrieve data from the network: Syntax error at position 12 in 'Project Type eq 'Admin Review''.      inner exception: Syntax error at position 12 in 'Project Type eq 'Admin Review''. clientRequestId: 9a0a14f3-4585-41fc-890b-50d6350a9ce8
 
Filter Table Erro...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Where are you based ?
    Also when you start typing Filter( does Table5 come up as an option ? If so, when you continue Filter(Table5, does 'Project Type' come as an option ?
    Your problem here may also be the space in the field name (not a good practice when using Excel - which is the "data source of last resort" - SharePoint is far better), so you can also try
    Filter(
       Table5,
       Project_x0020_Type = "Admin Review"
    )
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    Just to expand on what Warren says, the space in the field name is a very likely cause.
     
    In addition to the space between "Project" and "Type", it's easy to accidently add a trailing space to an Excel column name (eg, "Project Type  " instead of "Project Type"). This mistake won't particularly be noticeable in Excel, but it'll matter in Power Apps. 
     
    If it's possible to change your column "ProjectType" without a space, you'll probably have more success. If you do change the column name, you'll need to make sure to refresh the Excel datasource in the data panel.  
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard