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 / Wrong expected operator
Power Apps
Answered

Wrong expected operator

(0) ShareShare
ReportReport
Posted on by 117

jakubz_0-1628082605080.png

Can you guys please help with what Im doing wrong? 

 

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    The second argument in your Filter() needs to be an expression that evaluates to true/false. Records matching that condition as true will be returned by the filter.

     

    Hope that helps!

  • jakubz Profile Picture
    117 on at

    Sorry, Still the same problem..

    And i forget to mention that, I´m filtering the items in gallery

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    OK, can you post the latest version of your statement so we can check it out?

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

    @jakubz 

    Please consider changing your Formula to the following:

    With(User(),
     With({_items:
     Filter(HelpDesk_Data, 
     (isAdmin && StartsWith('Author (Author0)', MyTicketsScreenGallerySearchBox.Text)) ||
     (!isAdmin && 'Author (Author0)' = FullName)
     )
     },
    
     Sort(_items,
     ID,
     Descending
     )
     )
    )
     

     

    If this is SharePoint and your Author column is a Person column, then you will need to change to the following:

    With(User(),
     With({_items:
     Filter(HelpDesk_Data, 
     (isAdmin && StartsWith('Author (Author0)'.DisplayName, MyTicketsScreenGallerySearchBox.Text)) ||
     (!isAdmin && 'Author (Author0)'.DisplayName = FullName)
     )
     },
    
     Sort(_items,
     ID,
     Descending
     )
     )
    )
     

     

    I hope this is helpful for you.

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard