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 Apps
Answered

ComboBox

(0) ShareShare
ReportReport
Posted on by 215

lunalovegood_1-1695198070981.png

hello,

I try to filter my gallery using ComboBox , the last condition shows that there's an error related to the line of code that i inserted , when i hover over to the underlined error , it displays "Expected operator.  We expect an operator  such as +,&, or * at this point in the formula"

 

Thank you in advance!

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @lunalovegood ,

    The syntax is incorrect.

     

    The last condition should be like below if you want to check if ComboBox2.Selected.'Keywords' is blank. 

     

     IsBlank(ComboBox2.Selected.'Keywords')

     

    OR check this if you want 'Keywords' = ComboBox2.Selected.'Keywords'). You are missing "="

     

    Filter(
    'HEO Lesson Learn', 
    IsBlank(ComboBox2.Selected.Value) || IsEmpty(ComboBox2.SelectedItems) || 'Keywords' = ComboBox2.Selected.'Keywords')

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution 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 giving it Thumbs up.

    Thanks,

    ANB

     

     

  • lunalovegood Profile Picture
    215 on at

    lunalovegood_0-1695199880834.png


    the underlined "=" display error , incompatible type for comparison. these type cant be compared : Record, error. 

    the underlined 'Keywords' display error,  Name isnt valid. 'Keywords' isnt recognized.

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @lunalovegood Try with without ' '

    Filter(
    'HEO Lesson Learn', 
    IsBlank(ComboBox2.Selected.Value) || IsEmpty(ComboBox2.SelectedItems) || Keywords = ComboBox2.Selected.Keywords)

     

    Do you have that column name in source?

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution 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 giving it Thumbs up.

    Thanks,

    ANB

  • lunalovegood Profile Picture
    215 on at

    lunalovegood_0-1695201127287.png

    the underlined "=" display error; incompatible type for comparison. these type cant be compared : Record, error. 

    the underlined Keywords display error; Name isnt valid. Keywords isnt recognized.


    i do have the column name in my data source , the column name is Keywords

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @lunalovegood What is the item property of this combo box? And what is the datatype of Keywords column in your source?

     

    Thanks,

    ANB

  • lunalovegood Profile Picture
    215 on at

    item property : Choices('HEO Lesson Learn' . 'Keywords')
     datatype of Keywords column is Choice

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @lunalovegood : Please use "Value"

    Filter(
    'HEO Lesson Learn', 
    IsBlank(ComboBox2.Selected.Value) || IsEmpty(ComboBox2.SelectedItems) || Keywords = ComboBox2.Selected.Value)

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution 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 giving it Thumbs up.

    Thanks,

    ANB

  • lunalovegood Profile Picture
    215 on at

    lunalovegood_0-1695260366065.png

    the underlined "=" display error , incompatible types for comparison. these types cant be compared:Record, text

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @lunalovegood Apologies, forgot to mention that Value should be in both places.

    Filter(
    'HEO Lesson Learn', 
    IsBlank(ComboBox2.Selected.Value) || IsEmpty(ComboBox2.SelectedItems) || Keywords.Value = ComboBox2.Selected.Value)

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution 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 giving it Thumbs up.

    Thanks,

    ANB

     

  • lunalovegood Profile Picture
    215 on at

    it works but another issue arise , when i select more than options in the checkbox , the gallery only display the 1st choice that i selected. can you help me ?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard