Hello all,
I am working with some tables which all have Dataverse as the source and the ForAll() function doesn't seem to work properly.
I have a collection of text values called "ProviderKPIS" where I used nested ForAll() loops successfully and stored 17 values. With these values from the "ProviderKPIS" collection I want to filter a dataverse table called 'ESG OS-KPI Values' based on a column called "KPI ID_Text". This "KPI ID_Text" column is a text column that is calculated in Dataverse from a Lookup column "KPI ID" that pulls in the same values that I collected in the "ProviderKPIS" collection. So there is a one-to-many relationship from the "ProviderKPIS" collection to the 'ESG OS-KPI Values' dataverse table. I tried to use both the Filter() and the Search() functions to pull all the records that have the same "KPI ID_Text" values as the values in the "ProviderKPIS" but it always returns 0 records so I'm not sure what I'm doing wrong. Here is the code below:
ForAll(ProviderKPIS,
ForAll(Filter('ESG OS-KPI Values','KPI ID_Text'=Value),
Collect(ProviderKPI_Values,ThisRecord)));
Below is screenshots of the collection "ProviderKPIS" for reference:

And screenshot of the "KPI ID_Text" column in the Dataverse table:

Any advice would be helpful!
EDIT:
I also tried just one ForAll() loop and still no success:
ForAll(ProviderKPIS,
Collect(ProviderKPI_Values,Filter('ESG OS-KPI Values','KPI ID_Text'=Value)));