cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sjcitpro
Level: Powered On

Showing items in Gallery based on values from another Gallery.

I have a Gallery named GalleryPositions with items from Sharepoint list "Staffing List" I have another Gallery on same screen names GalleryCandidates with items from Sharepoint list Candidate. "Staffing List" has a column named CandidateIDs that contain the ID's of Candidate delimited by spaces. "10 34 40" I can use the following: Filter(Candidate, ID in Split(GalleryPositions.Selected.CandidateIDs, " ")) to show those Candidate list items where ID's in "Staffing List":CandidateIDs in Gallery GalleryCandidates. What I want to do is show the remaining items in the Sharepoint list Candidate. So I have a list named "Staffing List" and a list named Candidate. An item in "Staffing List" can have multiple Candidate list items attached. I want Gallery GalleryCandidates to show those list items that are attached to GalleryPosition.Selected then the remaining Candidate list items.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Showing items in Gallery based on values from another Gallery.

Hi @sjcitpro,

Could you please share a bit more about your scenario?
Do you want to display the remaining Candidate list items which are not attached to the selected item in GalleryPosition gallery?

If you want to display the remaining Candidate list items which are not attached to the selected item in GalleryPosition gallery, I think the Not function could achieve your needs.

I have made a test on my side, please take a try with the following formula (set the Items property of the Gallery to following):

Filter(
Candidate,
Not(ID in Split(GalleryPositions.Selected.CandidateIDs, " "))
)

More details about the Not function in PowerApps, please check the following article:

Not function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
sjcitpro
Level: Powered On

Re: Showing items in Gallery based on values from another Gallery.

I would like to show the attached items first, then the remaining items.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 40 members 4,104 guests
Please welcome our newest community members: