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 / Filter a form accordin...
Power Apps
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?

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    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!

     

  • cchannon Profile Picture
    4,702 Moderator on at

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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard