web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create view for a Many...
Power Apps
Unanswered

Create view for a Many to Many relationship using a custom junction table

(0) ShareShare
ReportReport
Posted on by 59

Context:

I´m creating a model driven app to manage the activities and projects that are executed on my area. I was struggling with how to assign an activity to several users, this would be a N:M relationship cause a user can have several activities assigned to him and any given activity can have several users assigned. I read a forum where it recommends creating a custom junction table instead of using the default many to many relationships available in Dataverse. This was useful as it makes it possible to create a subgrid in the new activity form where the coordinator can assign different users to an activity. This is a diagram of the data structure:

ER schemaER schema

 

My need:

Now, I need to create a view, report or anything that let me see all the activities a given user is assigned to. Something like:

 

User 1 Name:  
 Activity 1 nameOther fields form the activity table
 Activity 2 nameOther fields form the activity table
User 2 Name:  
 Activity 2 nameOther fields form the activity table
 Activity 3 nameOther fields form the activity table

 

Does anybody know how to achieve this?

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hi @danielmbaquero,

     

    Yes what you read is correct, in Model Driven app we cannot view N:N relationship with View

     

    So to achieve your scinario, we can use Junction Table and can display the related values using Groupby User

  • danielmbaquero Profile Picture
    59 on at

    Hi @rampprakash,

     

    I may be not getting something pretty basic, but, how do I create that "junction display" and use the group by?

  • Verified answer
    Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @danielmbaquero,

     

    In the Reports try creating a new Report for Junction Table

    in the Top Grouping Add User 

    then in the Below Add Activities

    rampprakash_0-1630567385871.png

     

    Please mark as Answer if it is helpful and provide Kudos

    https://microsoftcrmtechie.blogspot.com
    https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard