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 a gallery with ...
Power Apps
Unanswered

filter a gallery with a many-to many relation

(0) ShareShare
ReportReport
Posted on by 23

So i have this gallery that contains a list of horse. 

 

With({Listefilter:SortByColumns(
 Switch(
 DropdownHorse.SelectedText.Value;
"All";Search(Horses;searchText.Text;"Name"); 
"Stable";Search(Filter(Horses;'LocalId:Name'.Value="Stable");searchText.Text;"Name");
"equestrian centrer";Search(Filter(Horses;'LocalId:Name'.Value="equestrian centre");searchText.Text;"Name");
"Reproduction";Search(Filter(Horses;'LocalId:Name'.Value="Reproduction");searchText.Text;"Name")
 
 


);sortColumn;If(sortName;Ascending;Descending))};If(Checkbox2.Value;Listefilter;Filter(Listefilter;!IsBlank(ThisRecord.detailproblem.'ProblemeID:Description'.Value))))

 

 

What i want to to do is add another filter that check if an horse have at least a problems, but since a horse can have many problems and a problems can be assign to many horses, it must be put in a related table with both ID as lookup field.

 

what i tried to do was add a column that lookup the "detailproblem" wich is the problem related to the horse with unique data.

 

AddColumns(Horses;"detailproblem";LookUp(DetailProblem;HorseID.Value=Horse[@ID])

 

 

 

 

it work except it broke the part i want to navigate with the selected item. since it had a new column. How can i filter my  horses if they have at least one problem in the detailproblem list?

Categories:
I have the same question (0)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard