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 / Remove values already ...
Power Apps
Unanswered

Remove values already selected in the dropdown in a gallery

(1) ShareShare
ReportReport
Posted on by 11

@RandyHayes

@WarrenBelz 

I'm trying to hide a value in a drop-down if a value is selected in the other drop-downs. (in a gallery)

 

I have the following:

 

- Collection list of my drawdown choices: 

 

 

 

 

ClearCollect(colDrpdwnJobType,{ID:1, Name: "Job1"}, {ID:2, Name: "Job2"}, {ID:3, Name: "Job3"});

 

 

 

 

 - Formula where i collect the selected items after the creation of a new item in a gallery

 

 

 

 

If(
 Not(
 LookUp(
 GalleryJobs.AllItems,
 ID = LastJobID
 ).Dropdown2.Selected.ID in colSelectedJobData.ID
 ),
 Collect(
 colSelectedJobData,
 LookUp(
 GalleryJobs.AllItems,
 ID = LastJobID
 ).Dropdown2.Selected
 )
);

 

 

 

 

- OnChange of the dropDown:

 

 

If(Not(Self.Selected.ID in colSelectedJobData.ID),Collect(colSelectedJobData,Self.Selected))

 

 

 - My filter on items of the dropdown: 

 

 

 

 

Filter(colDrpdwnJobType, !(ID in colSelectedJobData.ID))

 

 

 

 

What I'm trying to achieve is that when a user adds a new item in a gallery, only the left 2 values are displayed and the 1st dropdown is filtered too depending on what default in the second one.

Now the dropdown filter applies to all my dropdowns in a gallery


Thanks

Capteeure.PNG
Categories:

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard