Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rpMKTjq15V6RzBTKsqMQPE
Power Apps - Building Power Apps
Answered

collection filtering

Like (0) ShareShare
ReportReport
Posted on 16 May 2020 04:34:01 by 24

Hello, i have a gallery and data source is the collection. I want to filer the another collection based on the selected row in gallery based on ID and get the value of the another column. Request you to please help. Thanks

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    on 18 May 2020 at 05:31:17
    Re: collection filtering

    Hi @vshah2 ,

    I agree with most of @WarrenBelz 's thought. But I need to correct you a little. Filter function could not get field's value(formula1).

    In formula2, you will get a table, not a value neither.

     

    Do you want to filter another collection based on the selected ID in the gallery and get one column value from the filtered collection?

    If so, I suggest you try LookUp function, which could get the filtered item's field value.

    Try this:

    LookUp(
     YourOtherCollection,
     ID=YourGalleryName.Selected.ID,
     YourOtherColumn
    )

    or

    LookUp(
     YourOtherCollection,
     ID=YourGalleryName.Selected.ID
    ).YourOtherColumn

     Please refer this doc to see the differences between filter function and lookup function:

    https://docs.microsoft.com/en-us/powerapps/powerapps-overview

     

     

    Best regards,

  • WarrenBelz Profile Picture
    146,645 Most Valuable Professional on 16 May 2020 at 05:58:42
    Re: collection filtering

    Hi @vshah2 ,

    Something like this

    Filter(
     YourOtherCollection,
     ID=YourGalleryName.Selected.ID,
     YourOtherColumn
    )

    or

    Filter(
     YourOtherCollection,
     ID=YourGalleryName.Selected.ID
    ).YourOtherColumn

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started