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 / 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

Categories:
I have the same question (0)

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