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 / Using n:m Relations wi...
Power Apps
Answered

Using n:m Relations with SharePoint Lists

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello There,

 

I'm trying to create a power app for a club, I've got the start up working fine, I can create and view users, I can also create and view events for the users, but now I want to give the users responsibilities.

 

The problem here is that each user can have multiple responsibilities and the responsibilities can have multiple users, so I created an intermediate table in which I wrote the ID (mail) of the user and the ID (name of the responsibility).

 

The problem now is that I want to display all the responsibilities of the user I have selected in a gallery.

 

 

So that we all understand what the others mean, I would have named and created the tables as follows for examples:
- User
   with columns: Name, First name, Mail(id)
- UserToResponsibilities
   with columns: Person_fs(mail from user), Responsibilities_fs(name of responsibility).
- Responsibilities
   with columns: Responsibilities_id

 

I also have a Main_Gallery in which I select the user and display his stuff.

 

 

What I have already tried:

Search(UserToResponsibilities;Main_Gallery.Selected.Mail; "Person_fs").Responsibilities_fs
This works, but if someone is new and has no responsibilities yet, everything is displayed for them.

 

Filter(Responsibilities;Responsibilities_id=LookUp(UserToResponsibilities;Person_fs=Main_Gallery.Selected.Mail;Responsibilities_fs))
This doesn't work because I only ever get the first responsibility back here, as the LookUp only returns the first one.

 


Thank you in advance for your help.

 

 

Translated with www.DeepL.com/Translator (free version), so there could be some missunderstandings.

Categories:
I have the same question (0)
  • Sanshubh Profile Picture
    512 on at

    Try this

    And in the below code, I assume that you've used the Id of Responsibilities tables Id column.

    Filter(Responsibilities;Id=LookUp(UserToResponsibilities;Person_fs=Main_Gallery.Selected.Mail).Responsibilities_fs.Id)

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks but i found the Anwser, its like this:

     

    Filter(Responsibilities;Responsibilities_id=LookUp(UserToResponsibilities;User_fs=Main_Gallery.Selected.Mail && Responsibilities_fs=Responsibilities_id;Responsibilities_fs)

     

    Very important ist the second last Responsibilities_id bcause like this you wont just get the first one, bcause u will go through every FS from both sides like this.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard