Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter Form with Combobox

(0) ShareShare
ReportReport
Posted on by 725

It's like I cannot see the elephant in the room, I presume it is simple. I would like my edit form to be filtered by a combobox from the same datasource. I have used combobox frequently, but still getting my head around forms. Im using a sharepoint list that has about thirty records.

  • AdamLa Profile Picture
    3 on at
    Re: Filter Form with Combobox

    Hi armiv,

     

    Check if you have form Default mode mode as "Edit". When you creating new one it's going automatically to "New".

     

    AdamLa_1-1695200299414.png

     

     

     

     

     

     

  • armiv Profile Picture
    27 on at
    Re: Filter Form with Combobox

    Hi,

    I see this is quite an old post but I am currently having the same issue and the solution given here is not working for me. I would really appreciate if someone could help me 🙂

     

    Here is the dropdown, connected to the SharePoint table from which I select the Legal Entity field: 

    armiv_0-1691574929597.png

     

    And this is the piece of code in my Form's DataSource:

    LookUp('DEI', 'Legal Entity' = leDropDown.Selected.'Legal Entity')

     

    For some reason, when I select something from the dropdown, nothing appears in the Form.

    Is there anything I am missing?

    Thank you in advance!

  • R Bakker Profile Picture
    725 on at
    Re: Filter Form with Combobox

    This works great, I shall get this tattooed somewhere, so that I don't forget. Or make a note to self on which app I have used this function. Thanks again Warren

  • Verified answer
    WarrenBelz Profile Picture
    146,658 Most Valuable Professional on at
    Re: Filter Form with Combobox

    @Corissandageri ,

    Actually I did not notice the form reference - you need in the Items

    LookUp(
     Table2,
     CN02 =ComboBox6.Selected.CN02
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • R Bakker Profile Picture
    725 on at
    Re: Filter Form with Combobox

    When I filter using a gallery, it works fine. But I don't really have the real estate for a gallery.

  • R Bakker Profile Picture
    725 on at
    Re: Filter Form with Combobox

    Hi Warren

    Firstly, I tell a lie, it's a Excel spreadsheet, from one of my earlier apps before I switched to Sharepoint.

    I think I have tried all of the above.

    My combobox6 is as follows: 

    Table2.CN02

    This is my form:

    Filter(Table2,CN02 =ComboBox6.Selected.CN02)

    And the form data source:

    Table2

    This is an old app which is already connected to the mentioned data source.

     

  • WarrenBelz Profile Picture
    146,658 Most Valuable Professional on at
    Re: Filter Form with Combobox

    @Corissandageri ,

    Filter(
     YourListName,
     MatchingField=YourComboBoxName.Selected.xxxx
    )

    where xxxx depends on the Items property of the combo box.

    When you type YourComboBoxName.Selected. (note second dot), valid values will come up underneath. For some guidance of what they mean: -

    • If your Items are Choices(ListName.FieldName) - a Choices or Lookup field), the reference will be YourComboBoxName.Selected.Value
    • If they are Distinct( . . .  .), it will be YourComboBoxName.Selected.Result
    • The other option is when they are based on a field value in a list (other than Distinct), then it will be YourComboBoxName.Selected.FieldName (actual field name)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 🌸

WIN Power Platform Community Conference 2025 tickets!

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,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard