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

Community site session details

Session Id : Wh9wQHIRTLFWeRzwIWLi7K
Power Apps - Microsoft Dataverse
Unanswered

Relate function multiple relationships between tables

Like (0) ShareShare
ReportReport
Posted on 22 Mar 2022 13:08:00 by 36

I am having trouble using the Relate function because I have two relationships and Relate doesn't specify which relationship to use. 

 

I have two tables, "People", and "Meetings", and two relationships between them. A 1:N relationship called "Primary" and a N:N relationship. How can I use the Relate function to relate a "Person" to the "Primary" field in a "Meeting"? 

The Relate function works if I only have the 1:N relationship, but does not work when I also have a N:N relationship between the two tables. 

 

I am currently getting the error "The function 'Relate' has some invalid arguments." and my code is 

Relate(ComboBox5.Selected.Meetings,ComboBox4.Selected)

 

Is this an impossible situation where I need to change my relationships? Or is there a solution that I am failing to see?

 

jawalley_0-1647954215238.png

 

 

Categories:
I have the same question (0)
  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on 22 Mar 2022 at 17:59:53
    Re: Relate function multiple relationships between tables

    Hi @jawalley ,

     

    Question for you, you appear to be trying to link a related record to the ComboBox1 that would be multiple records right?  Is Meetings a "single" record?  It needs to be, so I would think something like the following might work in your case:

    Relate(First(ComboBox5.Selected.Meetings),ComboBox4.Selected)

    Not sure if this makes sense for your situation

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 917 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 387 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 334 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics