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 / Exclude item in combo ...
Power Apps
Answered

Exclude item in combo box if it appears as an item in a gallery

(0) ShareShare
ReportReport
Posted on by 64

I have a gallery displaying records that are tied to a specific parent ID. I want users to be able to also tie the record to other related records that are NOT tied to that parent ID using a combo box, but I don't want that combo box to show any of the items that already show in my gallery. 

 

Here's the gallery Items property: 

Filter(Efforts, ParentNarrativeID= NarrativeDropDown.Selected.ID)

The gallery then displays the result's 'Initiative Title'

 

Here's my current combo box items property:

Sort(Filter(Efforts, 'Effort Type'.Value="Canvas"), 'Initiative Title', Ascending)

 

What can I add to the combo box to filter out any Initiative Titles that already show up in the gallery?

Categories:
I have the same question (0)
  • Verified answer
    JD382 Profile Picture
    114 on at

    This will filter out items that don't have a ParentNarrativeID that is selected in NarrativeDropDown  (which is the only filter for your gallery).

     

    Sort(Filter(Efforts, 'Effort Type'.Value="Canvas" && !(ParentNarrativeID=NarrativeDropDown.Selected.ID)), 'Initiative Title', Ascending)

     

    Hope this helps!

     

  • JennC26 Profile Picture
    64 on at

    Thanks, @JD382. Right after submitting my question, the lightbulb went off and I was coming to the same realization and came up with the same formula above. Great minds 🙂 

     

    Thanks again for the response and validation!

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 739 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 268

Last 30 days Overall leaderboard