Good afternoon all,
I am trying to build a flow that pulls the flattened organisation structure from a PowerBI report and I want to find the first row that a person (from a dynamic value) appears in as that can then be used in further PowerBI queries. I have extracted the data from the BI dataset and have it in an array, but I'm having trouble then filtering it out to get the first time that the person appears. The filter array function lets you have multiple conditions, and dynamic values, but seemingly not both at the same time.
Any help would be appreciated.




With my filter function being:
@Anonymous(
contains('ManagerHierarchy[Level 1]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 2]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 3]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 4]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 5]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 6]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 7]', items('Apply_to_each')?['Title']),
contains('ManagerHierarchy[Level 8]', items('Apply_to_each')?['Title'])
)
All I receive is a blank array despite being able to search for the two Managers names in the inputs section.
