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 / Modelling is with M;M ...
Power Apps
Answered

Modelling is with M;M and a dependent lookup request

(0) ShareShare
ReportReport
Posted on by 21

I have a many to many relationship where one side of the relationship has an EXTREMELY LONG list of items (regulations and related clauses). I want to use a dependent lookup to related cases to relevant sections of Acts.

 

For example:

 

Police investigation a CASE into Criminal A. The criminal may have allegedly breached a few clauses of the Crimes Act and also the Stalking Act. So I want a CASE Table record to be related to the relevant clauses of the alleged breach.  But the list of acts and clauses is massive.  So I would like to select the Act first, and then the dependent clause for that act second.

For example

 

Case 101 (from the Case Table) 

is related to

Crimes Act clause 10
Crimes Act clause 12
Crimes Act clause 26
Stalking Act subclause 12(c)
Stalking Act subclause 12(d)
from the Breaches Table. 

Is there a modelling way or a dependent lookup way to improve the user experience so that when they are in a case, and need to related that case to many pieces of regulation and many clauses, it could be done nicely by 1. selecting the Act, and 2, selecting the related clause of that Act?

I am struggling with the concept of multi-value, multi-row many to many relationship.

Perhaps no relationship between the Case Table and the Breaches Table? with the Breaches table having say 3 columns, auto id, Act and Clause, and then the Act clause column is A lookup to a table Called Regulation, and the Clause column in Breaches is sourced from a Clause Table, and then the Regulation and Clause table are related and therefore a dependent lookup could be made between the two data entry fields on the Breaches table relating to the Act and Clause tables.  

Perhaps that would work ... typing it out I may have solved it.  I will check back. 

 
I have the same question (0)
  • Verified answer
    ivan_apps Profile Picture
    2,187 Moderator on at

    Forgive me if I'm misunderstanding, but I believe you are looking for filters to narrow down the Breaches table?

    You would have a N:N relationship and you want to associate several breaches to a Case.

    You add a subgrid to the Case table, show only related records and select the N:N relationship to Breaches.

    In you subgrid command bar, you should see the 'Add Existing' option. Click on that to view the lookup record control on the right side.

    Click on the magnifying glass to show the 'Advanced Lookup' option. Click on it.

    A dialog should pop up with the ability to search and change the views.

    Build views for each type of act, it should help you narrow it down and view all subclauses.

    You can probably trigger the Advanced Lookup dialog in a couple fewer steps, might require some code customization.

  • GiJohn Profile Picture
    21 on at

    Nice solution.  I was definitely over engineering / over thinking it and using the OOB functions as you suggest will meet the needs well.   Many thanks.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard