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 / How to filter a row in...
Power Apps
Answered

How to filter a row in the list, based on 3 dropdown?

(0) ShareShare
ReportReport
Posted on by

Hi, I need to filter the the row from SP List, based on 3 given columns, that have been chosen via dropdown in the app.

The sharepointList data-source has the following columns: Country, Town, Service and Owner. First 3 columns are connected to dropdown.
I need to pull the value of Owner, based on the selected-dropdown and display it.

Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @blabla70,

     

    The following code will search your list for a matching record if all dropdowns have a value and display it on a label.

     

    Text property a label:

    If(
     //Check if all dropdowns have a selection
     !IsBlank(DropdownCountry.Selected) && !IsBlank(DropdownTown.Selected) && !IsBlank(DropdownService.Selected),
     LookUp(
     //Change to the correct list name
     LISTNAME,
     //Adjust column names and dropdown names where necessary
     Country = DropdownCountry.Selected && Town = DropdownTown.Selected && Service = DropdownService.Selected
     ).Owner
    )

    If Dropdown.Selected does not work (comparing value to a record error) try adding the field name as well. For Country this would be Country = DropdownCountry.Selected.Country

     

    If Owner is a person field, you might need to add .DisplayName at the end as well: ...).Owner.DisplayName 

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

     

  • blabla70 Profile Picture
    on at

    The syntax works, thanks for the good explanation. Just one thing, The user has to guess the right combination of the dropdown values, otherwise it doesn't work.
    I would need the first dropdown to filter the second, and the second to filter the third. So that it is not possible to select the town that doesn't belong to the country for example.
    Can you help me with that?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard