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 / Filter Gallery based o...
Power Apps
Answered

Filter Gallery based on gallery selection

(0) ShareShare
ReportReport
Posted on by 61
ForAll(Distinct('Purchase Forum',Title), LookUp('Purchase Forum', Title=PrimaryGallery.Selected.'Created By'.DisplayName))
 
ThisItem.Title

I'm using the above formula to filter the gallery based on gallery selection and remove duplicate but its not showing any data 

and this is the formula used in the primary gallery 

SortByColumns(ForAll(Distinct(Filter('Purchase Forum','Created By'.DisplayName=LookUp(myTeam,'Created By'.DisplayName=displayName).displayName),'Created By'.DisplayName),LookUp('Purchase Forum','Created By'.DisplayName=Result)),"Title",Descending) 
Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @wass ,

     

    Could you please share more details about your scenario? Which data source are your working with, SharePoint list?

     

    I suggest you rearrange the logic first since the formula does not seem clear enough. Please share more details about the two data source tables you are using in the two formulas, with columns and respective column types as well.

     

    Best regards,

    Community Support Team _ Jeffer Ni

  • Verified answer
    wass Profile Picture
    61 on at

    After several attempt yesterday i managed to make it work and below is the working function

    SortByColumns(ForAll(Distinct(Filter('Purchase Forum','Created By'.DisplayName=PrimaryGallery.Selected.'Requested By'),Title),LookUp('Purchase Forum',Title=Result)),"Title",Descending)

    after lots of trial and error it worked finally @v-jefferni 

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard