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 : LoJp1/TCIf83b208ruLUX1
Power Apps - Microsoft Dataverse
Answered

Creating an associate table in power apps

Like (1) ShareShare
ReportReport
Posted on 10 Jul 2024 05:06:12 by 14

Hi Everyone,

I am trying to create an "association table" in dataverse 

The premis goes like this 

I have two seperate tables. one for users (given a unique user ID) and another one for exams (given an exam ID)

Now i need another table to link the users to the exams that they have earned please see example below:

matt_dek_0-1720587873747.png

I am not too sure how I would go about it as the user ID and exam ID will have to be repeated as a person can have multiple exams and an exam can be written by multiple people

Thank you in advance!



I have the same question (0)
  • Shashank Bhide Profile Picture
    942 Moderator on 10 Jul 2024 at 06:29:21
    Re: Creating an associate table in power apps

    In Dataverse you can have a N:N relationship established between exam and user tables.

     

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/create-edit-nn-relationships-portal

     

  • Verified answer
    AllanDeCastro Profile Picture
    412 Most Valuable Professional on 10 Jul 2024 at 06:33:04
    Re: Creating an associate table in power apps

    Hello

    You will have to create a N:N manual between these two tables:

    Creating an association table (also known as a junction table or linking table) is a common practice in database design to handle many-to-many relationships. In your case, you need a table that links users to exams. Here’s a step-by-step guide to accomplish this in Dataverse:

    1. Define User Table: This table will store user details.

      • User Table Columns:
        • UserID (Primary Key)
        • UserName
        • Email
        • etc.
    2. Define Exam Table: This table will store exam details.

      • Exam Table Columns:
        • ExamID (Primary Key)
        • ExamName
        • Date
        • etc.
    3. Create Association Table: This table will link users to exams.

      • Association Table Columns:
        • AssociationID (Primary Key)
        • UserID (Foreign Key referencing UserID in User Table)
        • ExamID (Foreign Key referencing ExamID in Exam Table)
        • EarnedDate (Optional, if you want to record when the user earned the exam)

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard

Featured topics

Loading complete