cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

collection filtering

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Champion
Community Champion

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.

 

Highlighted
Community Support
Community Support

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,861)