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 : aoOP6efA1njZBa+S+JH0wX
Power Apps - Microsoft Dataverse
Answered

Linking two tables which have a common column

Like (0) ShareShare
ReportReport
Posted on 12 Oct 2021 12:17:42 by

We are building an app on the basis of two dataverse tables, each of the table has a column "name" and each name has one row in each table. (each name exists once in each table)

1. So we somehow need to link these two tables (name of table 1= name of table 2)

2. So, when we have an app screen which consists of a gallery (on the basis of table 1) and below a form (on the basis of table 2) the according data of one person gets displayed. 

 

Could somebody help with these two issues?

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on 13 Oct 2021 at 03:46:18
    Re: Linking two tables which have a common column

    Hi @Anonymous ,

     

    Please try the followint steps:

    1\ Add a gallery control and set its Items property to:

    table 1

     

    2\ Add a form control and set its datasource property to:

    table 2

     

    Set the Item property of your form control to:

    LookUp(table 2, Name=your gallery.Selected.Name)

     

    Best Regards,

    Wearsky

  • Z_Lukowski Profile Picture
    216 on 12 Oct 2021 at 18:00:41
    Re: Linking two tables which have a common column

    HI @Anonymous ,

    So first of all in Dataverse you have Fields of Lookup Type, which will allow you to link your Tables (They will be linked on Unique number = GUID) , but if its not enough and you need to link them based on other criteria, like Name, what I can suggest you to do is to Create Collections from both tables and link them using functionality mimicing LEFT JOIN in SQL, 

    I have prepared the Entire tutorial with Linking collections, hope you'll find it helpful:

     

    Left Join Tutorial:

    https://youtu.be/tABaxLVAnvs

     

    Inner Join Tutorial (will behave same as left join but remove not matched data entirely):

    https://youtu.be/2n4j3t_0Obo

     

    When you have record from joined collections you can use them however you like, for example pass them to a form , variable etc depending on your conditions

     

    BR

    Zbigniew

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

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Loading complete