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 / 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:
I have the same question (0)
  • 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,297 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard