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 / How to filter a table ...
Power Apps
Answered

How to filter a table based on N:N relation

(0) ShareShare
ReportReport
Posted on by 63

I have two tables Decision and File. And I have N:N relation between these tables.
My business case is that I want to relate multiple files with a decision and show that in a gallery and similarly I want to be able to relate multiple decisions with a file and show the related decisions in a gallery for selected file.

My current approach is to use this formula.

Usmannb_0-1636437028074.png

 

In this formula DecisionFile is the unique identifier of File table and ThisItem is representing current selected item in a gallery and in the items property of this gallery I have used Decision table as datasource.

 

As you can see that I have a delegation issue in the above formula and as I am expecting to have more than 2000 records in both table it will be problematic for me in future.

 

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Usmannb :

    You could try:

    ForAll(
     ThisItem.Files.DecisionFile As A,
     LookUp(Files,DecisionFile=A[@DecisionFile])
    )

    Best Regards,

    Bof

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