web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collect filtered value...
Power Apps
Answered

Collect filtered values that matches to a selected label in a lookup sharepoint column

(0) ShareShare
ReportReport
Posted on by 51

Hello All,

 

Again on "Stuck Mode" after trying all I know

Here is the thing:

I have one Sharepoint List with several colums and one of them is a lookup column which has one or more values from other SharePoint List.

I want to collect only the filtered data which match to a data informed on a text label. Already tried the following alternatives:

 

Collect(Teste;Filter('B2 - Consultas Técnicas (TQF)';'GHB RELATED DOCS'.Value=Label5.Text))

 

But it doesn't work.

Also tried to collect just the column and concat it before Filter in order to turn them into values.

Jmnavi_1-1695668370609.png

 

Collect(Teste;ForAll('B2 - Consultas Técnicas (TQF)';'GHB RELATED DOCS'));;
Collect(Teste2;Concat(Teste;Value;"-"))

 

But the concat is not working as well.

 

Do you guys know some way to turn this table values in my collect in values?

Or some way to filter them to the label data?

 

Just to make it clear, here is the print of the SharePoint List:

Jmnavi_0-1695669511731.png

I want to filter the data where the Column GHB RELATED DOCs are equal the text of the Label Text.

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Jmnavi,

     

    As I understand it you would like to retrieve all rows from a SharePoint list where at least one of the 'related docs' lookup records match the label text. We can use the non-delegable operator 'in' to achieve this - please keep in mind that the filter is limited to your Data Row Limit (see app settings, default 500 - max 2000).

     

    Collect(
     Teste;
     Filter(
     'B2 - Consultas Técnicas (TQF)';
     Label5.Text in 'GHB RELATED DOCS'.Value
     )
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • Jmnavi Profile Picture
    51 on at

    Thanks @LaurensM 

    It is working!!! Great.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard