cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Is it possible to filter a gallery based on ID in a SharePoint Lookup column?

I have a lookup column in a SharePoint list (List A) and would like to filter the list to show items in a gallery that display the currently selected ID for an item in the second list (List B). Is this possible? Here is a sample:

 

List A

ItemText [LOOKUP]
A2
B3
C2

 

List B

IDEntry
2Text.
3Also text.

 

I would like my gallery to only show items A and C from List A because they are linked to the item with the ID of 2 in List B. I get a delegation error when I try to filter the gallery by using Text.Id = Selected.ID

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Yes Lookups on the ID number is not Delegable.

One workaround is to have another field in PowerApps (hide if if you want to) and make the Default to the ID.

You can then do delegable lookups.

 

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.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Yes Lookups on the ID number is not Delegable.

One workaround is to have another field in PowerApps (hide if if you want to) and make the Default to the ID.

You can then do delegable lookups.

 

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.

Hi @Anonymous ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

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.

Thanks for the response. What do you mean by field in the app and setting its default?

Hi @dehmos27 ,

Yes - you can hide it on the new form - it will set when a new record is created. There are other ways such as a Patch, but sometimes simple is good. You then have a numeric field the same as the ID, which is delegable for Filters.

 

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,132)