I need to filter a dropdown list from the results of another dropdown list above it. I'm filtering personnel based on their respective agency, so when the user selects their Agency from the first dropdown list, the second dropdown list is only populated with Personnel from that Agency.
Agency and Personnel are two separate entities (tables) in the common data service (CDS).
So far I can get the list of Agencies from the CDS with
Filter(Agency, AgencyType = 9)
where [9] = the type of agency I'm filtering for.
I just can't get the list of people assigned to that agency to populate. I have tried:
ITEM: Filter(Personnel, ddAgency.Selected.Value in Personnel.AgencyID)
where ddAgency is the name of the referenced dropdown.
I am getting a single table error from PowerApps, so I guess it's my syntax. I'm trying to filter data and draw results based on values in 2 entities (tables).
Any suggestions?