Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Using a gallery for repetitive dropdowns issue

(0) ShareShare
ReportReport
Posted on by 345

Hi all,

 

So I've made a gallery to house a set of dropdowns, for the aim of reducing the number of controls on a screen. I've made a table like below:

Table(
 {Name: "Department", Items: Sort(RenameColumns(colDepartments, ShortName, Value), SortOrder)},
 {Name: "TaskType", Items: Distinct(colTaskTypes, TaskType)},
 {Name: "Responsibility", Items: Distinct(colResponsibility, Responsibility)}
)

I've renamed the Department outputs to Value so it'll work with the "fields" parameter of the dropdown. Each of the collections being referenced have an extra row to act as a default value/header for the dropdown.

 

This gives me something like this:

 

EpicTriffid_0-1713953951698.png

 

Now what I'd like to do is two things:

1. I'd like to make it so that both the Task Type and Responsibility dropdowns are disabled while the Department dropdown has "Department" selected. I figure i might need to reference the specific values within the dropdown, but I can't figure out how. Some combination of With() or As? Whatever I try in DisplayMode doesn't seem to work.

 

2. I'd like to filter the Task Type dropdown based on whatever Department is selected. colTaskTypes (the collection this dropdown is populated by) has separate entries based on the Department selected.

 

It would be as simple as anything if these were seperate controls, but using this method of reducing the number of controls is boggling my brain. Can anyone offer any advice, as well as explaining how it works?

 

To add, I know that reducing the number of controls is not essential, and that it really would be a problem to just have three seperate dropdown controls, but this is really an exercise in improving my PowerApps knowledge!

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Using a gallery for repetitive dropdowns issue

    Since you are inside a Gallery it is not possible to achieve. You would basically ask the drop down to disable itself, if the value of it is Department. So as soon as you would select Department all drop downs, would be disabled. you couldn't change your selection anymore.

    Since you are in a gallery I don't get how you could select department in a dropdown since the table that you displayed does not give any other options. Each Record has just one option to select. 

    please correct me if there was anything i missed.  

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard