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 / Filtering many to many...
Power Apps
Answered

Filtering many to many relationship Dynamics 365 CRM

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey community,

 

I have a problem with a many to many relationship in Dynamic 365 CRM between entity A and B. I want to show all records of entity A, that have a relationship to a particular record B. Currently I have chosen the filtering method to solve this problem but I'm not sure, if this is the right way. The problem is, I can't select the reletionship in the filter.

 

Relationship name (n:n): a_b_relationship

My Filter in the Datatable: Filter('A';a_b_relationship)

 

Unbenannt.PNG

 

Best regards,

ginas

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    adding in @EvanChakiMSFT to assist

     

    @Anonymous

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous,

    I have no experience with Dynamics but to model many to many relationships you need a third table called a junction table with the primary keys from both of the other tables. You then can model the relationship between each table and the junction table as one to many. Please see my posts in the PowerApps community blog regarding relational databases in PowerApps, particularly the last one. 

  • Verified answer
    EvanChakiMSFT Profile Picture
    Microsoft Employee on at

    You can check out this new blog post on how to do many-to-many with CDS - https://powerapps.microsoft.com/en-us/blog/option-sets-and-many-to-many-relationships-for-canvas-apps/

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard