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 / Comparing ALL ComboBox...
Power Apps
Answered

Comparing ALL ComboBox selected items to ALL items in a Column

(0) ShareShare
ReportReport
Posted on by 201

 

Is there a way to compare ALL items that a user has selected in a Combo box to ALL items listed in a Collection column (column's name is "Color" for this example)?

 

For example, there are 10 color options in a Combo box and the user selects "Red" and "Blue". I would like to go down the entire "Color" column and for ALL instances where "Red" or "Blue" occur in this column I want to enter the number "1" in another column within the Collection.

 

Right now I am using the UpdateIf in the OnChange property of the Combo box, but it only works on the first record it finds of either "Red" or "Blue" in the Collection's "Color" column. I cannot figure out a way to compare the other 50+ instances of "Red" and "Blue" remaining in the "Color" column.

 

Any suggestions on how best to do this?

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @AGS94 

     

    Can you try out the below expression on your Combobox "OnChange" property:
     
    UpdateIf(testcoll,Color in ComboBox1.SelectedItems.Value,{Value:1})
     
    Here, testcoll is the name of my datasource and Color is the name of column which has the value for stored color and Value is the name of column, that will be updated.pqww.png

     

    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • AGS94 Profile Picture
    201 on at

     

    That worked perfect - thanks!

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard