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 / Gallery editing and cr...
Power Apps
Unanswered

Gallery editing and creating many to many relationships

(0) ShareShare
ReportReport
Posted on by 49

I have three data tables, where two are dimensions with custumors and compliance rules. 

In between these I have a table where I manage which rules apply to which customers. 

CustomerIDCustomer
1x
2y
3z

 

RuleIDRule
1a
2b

 

ComplianceIDRuleIDCustomerID
111
212
321

 

In this example, rule a applies to customer x and y, and rule b applies to customer x, and customer z has no rules that apply. 

 

I would like to not fill my table with all possible combinations of the two tables and have an active column, but only save the ones where it applies. 

 

I would like in my app to have one gallery where you can select the customer you want, and then have it refer to another gallery, where you have a list with checkboxes for all the rules. If the combination exists, I want the checkbox to be checked. I can make that happen. If you check the box, and the rule does not exist, I would like the save button to add row as a combination in the compliance table. If the box is checked, and the user unchecks it, I would like the row to be updated to be inactive and have an enddate. 

CJac_1-1629725037716.png

I can't seem to figure out what the best way to do this would be, if I should use Patch, and if Patch can even work across all gallery items. 

The way I lookup to see if the value exists in the compliance table is by making this lookup: 

LookUp(Compliance, Customer = TableCustomer.Selected.Name && RuleId = ThisItem.Id, true)

And the Items are just the values from the Rules table. 

 

Hope this makes sense 🙂 

Categories:
I have the same question (0)

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard