Filter drop down B by drop down A

%3CLINGO-SUB%20id%3D%22lingo-sub-1675430%22%20slang%3D%22en-US%22%3EFilter%20drop%20down%20B%20by%20drop%20down%20A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1675430%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20SharePoint%20list%20(Intake%20Directory)%20with%20the%20following%20fields%20connected%20to%20my%20PowerApp%3A%3C%2FP%3E%3CP%3EDepartment%20(drop%20down%20-%20datacardvalue19)%3C%2FP%3E%3CP%3EExecutive%20Sponsor%20(text)%3C%2FP%3E%3CP%3EProject%20Sponsor%20(drop%20down)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20the%20user%20to%20select%20a%20value%20from%20the%20Department%20drop%20down%20and%20have%20the%20corresponding%20Executive%20Sponsor%20value%20auto-fill%20and%20the%20Project%20Sponsor%20drop%20down%20values%20to%20only%20show%20those%20project%20sponsors%20associated%20to%20the%20Executive%20Sponsor%20that%20was%20selected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20running%20into%20an%20issue%20getting%20the%20Project%20Sponsor%20field%20to%20filter%20the%20way%20I%20need%20it.%20I've%20tried%20this%20but%20it's%20not%20working%3A%3CBR%20%2F%3EFilter(Choices(%5B%40'Intake%20Directory'%5D.Project%20Sponsor)%3B%20Value%20in%20Filter(%5B%40'Intake%20Directory'%5D%2CDataCardValue19.Selected.Value))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1675430%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1676762%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20drop%20down%20B%20by%20drop%20down%20A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1676762%22%20slang%3D%22en-US%22%3EThere%20is%20no%20relation%20to%20filter%20off%20using%20that%20method%20unless%20you%20have%20department%20in%20the%20choices%20filed%20for%20each%20sponsor%20and%20then%20each%20spouse%20name%20listed%20per%20line%20in%20project%20sponsor%20and%20even%20then%20it%20probably%20wouldn%E2%80%99t%20work%20right%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%20Ideally%20you%20would%20keep%20two%20more%20lists%20somewhere%20that%20has%20the%20relationships%20so%20you%20can%20filter%20by%20one%20column%20and%20display%20the%20other%20and%20so%20on.%20Or%20you%20could%20use%20one%20list%20technically%20and%20have%20a%20drop%20down%20for%20relationship%20type%20in%20the%20list%20but%20either%20way%20need%20to%20have%20a%20place%20to%20define%20these%20relationships%20if%20that%20makes%20sense.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1679228%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20drop%20down%20B%20by%20drop%20down%20A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1679228%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BI'm%20not%20sure%20what%20you%20mean%20by%20%22there%20is%20no%20relationship%20to%20filter%20off%22.%20I%20have%20this%20working%20on%20another%20PowerApp%20where%20when%20a%20user%20makes%20a%20selection%20in%20a%20drop-down%20field%2C%20two%20other%20text%20fields%20auto-fill%20based%20on%20what%20is%20displayed%20in%20a%20single%20SharePoint%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20an%20example%20of%20what%20my%20list%20looks%20like%20for%20the%20current%20app%3A%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EDepartment%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EExecutive%20Sponsor%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EProject%20Sponsor%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EHR%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EJohn%20Smith%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EJane%20Doe%3CBR%20%2F%3EMike%20Smith%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3EITS%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3ETom%20Johnson%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%20height%3D%2230px%22%3E%3CP%3EMichelle%20Jones%3C%2FP%3E%3CP%3EChris%20St.%20John%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20my%20app%20if%20a%20user%20selects%20ITS%20as%20the%20department%2C%20then%20the%20Executive%20Sponsor%20should%20auto-fill%20to%20Tom%20and%20the%20Project%20Sponsor%20drop-down%20should%20only%20show%20Michelle%20%26amp%3B%20Chris.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a SharePoint list (Intake Directory) with the following fields connected to my PowerApp:

Department (drop down - datacardvalue19)

Executive Sponsor (text)

Project Sponsor (drop down)

 

I want the user to select a value from the Department drop down and have the corresponding Executive Sponsor value auto-fill and the Project Sponsor drop down values to only show those project sponsors associated to the Executive Sponsor that was selected.

 

I'm running into an issue getting the Project Sponsor field to filter the way I need it. I've tried this but it's not working:
Filter(Choices([@'Intake Directory'].Project Sponsor); Value in Filter([@'Intake Directory'],DataCardValue19.Selected.Value))

6 Replies
Highlighted
There is no relation to filter off using that method unless you have department in the choices filed for each sponsor and then each spouse name listed per line in project sponsor and even then it probably wouldn’t work right ?

Ideally you would keep two more lists somewhere that has the relationships so you can filter by one column and display the other and so on. Or you could use one list technically and have a drop down for relationship type in the list but either way need to have a place to define these relationships if that makes sense.
Highlighted

@Chris Webb I'm not sure what you mean by "there is no relationship to filter off". I have this working on another PowerApp where when a user makes a selection in a drop-down field, two other text fields auto-fill based on what is displayed in a single SharePoint list.

 

Here is an example of what my list looks like for the current app:

DepartmentExecutive SponsorProject Sponsor
HRJohn SmithJane Doe
Mike Smith
ITSTom Johnson

Michelle Jones

Chris St. John

 

On my app if a user selects ITS as the department, then the Executive Sponsor should auto-fill to Tom and the Project Sponsor drop-down should only show Michelle & Chris.

Highlighted
Oh, so this is a separate list from where the app stores data? I was under the impression that it was a single list with "choice" fields with those values, my bad :P.
Highlighted
Something like this should work, if I understand the ask.

Department (drop down - datacardvalue19)
Items = 'Listname'.Department

Executive Sponsor (text)
Text = Lookup('Listname',Department = datacardvalue19.selected.value).Executive Sponsor (maybe a .DisplayName if this is a people column)

Project Sponsor (drop down)
Items = Filter('listname',Department = datacardvalue19.selected.value)
Highlighted
It seems like that should work...but it's not. I'm still getting an invalid argument type error on the Project Sponsor drop down.
Highlighted
put a .ProjectSPonsor at the end, whatever the column name is.