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 ComboBox choice...
Power Apps
Answered

Filter ComboBox choices based on value from another Sharepoint List obtained by filtering with DropDown/ComboBox

(0) ShareShare
ReportReport
Posted on by 9

Hi All, 

 

I'm a little in over my head at the moment and am looking for help:

 

I'm trying to integrate an approval matrix into my PowerApp, but cannot figure out how to get a ComboBox to filter a Person column based on a text column in the same table, where the criteria for the text column is being pulled by filtering another SharepointList. Once the ComboBox is filled out, I'd like to Patch the DisplayName to another Sharepoint list after clicking a button. Is this possible or am I asking PowerApps of too much? 

 

My two SharePoint lists are below: 

ContractTypes

DivisionContractReviewer1Reviewer2Reviewer3
Div1ContractType1AttorneyDirector 
Div1ContractType2AttorneyDirectorAccountant
Div2ContractType1AttorneyDirector 
Div2Contract Type2AttorneyDirector 
Div3ContractType1AttorneyDirector 
Div3ContractType2AttorneyDirectorAccountant

 

ApproverChoices

DepartmentPositionPerson
LegalAttorneyLegal Person #1
LegalAttorneyLegal Person #2
ManufacturingDirectorDirector #1
LogisticsDirectorDirector #2
FinanceAccountantAccountant #1
FinanceSr. AccountantAccountant #2

 

A user selects a Division from the Dropdown: Items = Distinct(ContractTypes, Divison)

and a Contract from the ComboBox: Items = Distinct(ContractTypes, Contract)

 

I'd like to add 3 separate ComboBoxes to lookup the value in the ContractTypes.ReviewerX columns based on the selections above and show the people in ApproverChoices.Person where Position = ReviewerX. 

 

For example, if the:  dropdown = Div3 and ComboBox1 = ContractType2

ComboBox1 would show all DisplayNames where ApproverChoices.Position = Attorney (Legal Person #1 and Legal Person #2)

ComboBox2 would show all DisplayNames where ApproverChoices.Position = Director (Director #1 and Director #2)

ComboBox3 would show all DisplayNames where ApproverChoices.Position = Accountant (Accountant #1)

 

Once I get this figured out, I'd like to users make a selection in each of the ComboBoxes above, and click on the Submit button and the Sharepoint List to Patch each of the selected DisplayNames to a SharepointList column in a 3rd SharepointList. 

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,414 Super User 2025 Season 2 on at

    Hi @pinkydink 

     

    Here

     

    Box1
    If(!IsBlank(LookUp(ContractTypes, Division = Combo1.Selected.Value And Contract = Combo2.Selected.Value).Reviewer1),
    
    Filter(ApproverChoices, Position = LookUp(ContractTypes, Division = Combo1.Selected.Value And Contract = Combo2.Selected.Value).Reviewer1)
    )
    
    Box2
    If(!IsBlank(LookUp(ContractTypes, Division = Combo1.Selected.Value And Contract = Combo2.Selected.Value).Reviewer2),
    
    Filter(ApproverChoices, Position = LookUp(ContractTypes, Division = Combo1.Selected.Value And Contract = Combo2.Selected.Value).Reviewer2)
    )
    
    Box3
    If(!IsBlank(LookUp(ContractTypes, Division = Combo1.Selected.Value And Contract = Combo2.Selected.Value).Reviewer3),
    
    Filter(ApproverChoices, Position = LookUp(ContractTypes, Division = Combo1.Selected.Value And Contract = Combo2.Selected.Value).Reviewer3)
    
    )

     

     

    Dont forget to bind to the right Column or Change the Filter to end in .DisplayName

    Add in your box names.

     

    As for patching once they selected Just use box.Selected.Value or .Person.DisplayName depends on your bindings and columns


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard