Skip to main content
Community site session details

Community site session details

Session Id : NMyEj8W/wkkvwqmLOaH+pk
Power Apps - Microsoft Dataverse
Unanswered

How to create relationships between two tables

Like (0) ShareShare
ReportReport
Posted on 6 Nov 2023 11:35:23 by 2,278

Hi,

 

I need to create a one to many relationship, between table "Quizzes" and "Questions".

Both tables have been imported through a dataflow.

They both use "Name" autonumber as the primary key. However, the table structure is the following:

 

Quizzes:

Quiz_idDateOrder
1  
2  

 

Questions:

Question_idQuiz_id 
11 
21 
32 
42 

 

I want to relate Quizzes[Quiz_id] to Questions[Quiz_id]

 

How to do this?

 

  • gulshankhurana Profile Picture
    1,395 Moderator on 06 Nov 2023 at 14:42:53
    Re: How to create relationships between two tables

    Hi @WebPortal 

    By default, it looks for primary column (Name). It appears that you may not have any value in Name column. If I were you, I'd use a business rule or flow to copy quiz Id value to be set as the Name.

     

    The following post may be of help:

    Solved: Re: Dataverse lookups are blank - Power Platform Community (microsoft.com)

     

    Please press the like button to support my efforts. If it helps resolve your query then please also accept it as a solution so that it can also help other people with similar issues.

     

    Kind regards

    Gulshan

  • WebPortal Profile Picture
    2,278 on 06 Nov 2023 at 12:36:41
    Re: How to create relationships between two tables

    @gulshankhurana 

    Thanks, but that returns an empty result...

    How do I specify that I want the Quiz_id columns from both tables to establish the relationship?

  • gulshankhurana Profile Picture
    1,395 Moderator on 06 Nov 2023 at 12:31:58
    Re: How to create relationships between two tables

    Hi @WebPortal 

     

    You can import the Quiz table first.

    Then you can have a lookup column on Questions table pointing to the Quiz table and having the 'Name' (Primary column) of the Quiz record as plain text. When you import and define the schema, the system should automatically connect questions with their parent quiz record.

     

    I hope this information helps. Please give it a Thumbs Up if you appreciate my efforts. If it helps resolve your query then please also accept it as a solution. 

     

    Kind regards

    Gulshan 

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics