Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Filter a form according to the selections in Dropdown

(0) ShareShare
ReportReport
Posted on by

I am trying to filter a processing form.
The basis of this form is a table.
In the table there are the columns Location, Business Unit, Business Line and Department.
The columns are configured as choices


The names of the entries are structured as follows:

Business unit: Businessunit
Location: Location
Business line: Location.businessunit.businessline
Department: Location.Businesunit.Businessline.Department

 

I have a total of 4 dropdowns, one for each column.

 

If I select the businessunit and the location, the dropdown Businessline should only show the businesslines that belong to the selected businessunit and location.

 

If I have selected the businessline, it should only display the departments that match the businessline in the Department dropdown.

 

Can one of you help me?

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Filter a form according to the selections in Dropdown

    @LeonGrußler did this post help resolve your issue? If so, please mark the solution for future forum visitors!

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Filter a form according to the selections in Dropdown

    Maybe try the example as a starting point. I don't know your table or control names so I've just put in placeholder names and I wrote this off the top of my head so syntax might not be exact, but hopefully this gives you an idea...

    This example shows how you might build the dataset for Business Lines: We start with an IF to check, "is there a value in Business Unit?" If so, we will return Business Lines where they match the Business Unit. If not, we will look to the Location Control value. If that contains a value, we will return Business Lines where they match that location, otherwise, we will just return all business lines, unfiltered.

    If(
     !IsBlank(MyBusinessUnitControl.Value), 
     filter(
     BusinessLines, 
     BusinessUnit = MyBusinessUnitControl.Value
     ), If(
     !IsBlank(MyLocationControl.Value), 
     filter(
     BusinessLines, 
     Location = MyLocationControl.Value
     ), 
     BusinessLines
     )
    )

    Hope this helps!

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 52 Super User 2025 Season 1

Overall leaderboard