Forum Discussion

alicelpn's avatar
alicelpn
Frequent Visitor
6 years ago
Solved

Create Table/Records via query

Hi there,  I'm new to Power BI and seek for help to achieve the following outcome from these 2 tables.

 

1. Job table (Data source/lookup)

Job Title   Job Element

A1            JE1

A1            JE2

A1            JE3

A2            JE4

A2            JE5

 

2. Employee table

Employee ID    Job Title    Job Element

464                  A1             JE2

565                  A2             JE5 

 

3. Outcome (to be appended to Employee table or as new table)

Employee ID    Job Title    Job Element

464                  A1             JE1

464                  A1             JE3

565                  A2             JE4

 

Thank you in advance.

  • Fowmy's avatar
    Fowmy
    6 years ago

    alicelpn 

    As per your original question and the explanation you provided, my solution works, great!
    Now it is a matter of configuring and adapting it to your model including the relationship issue.

    You may accept this as a solution and open new a question to sort out the relationship problem.

    ________________________

    Did I answer your question? Mark this post as a solution, this will help others!.

    Click on the Thumbs-Up icon on the right if you like this reply 🙂

    YouTube, LinkedIn



3 Replies

    • alicelpn's avatar
      alicelpn
      Frequent Visitor

      Hello Fowmy,

       

      Thank you very much for the reply and solution.  I tried to create the relationship following the example given in actual tables.  However, both relationship from Merge1 table to Employee table & Merge1 table to Job table gave message "! The cardinality you selected isn't valid for this relationship.".  The OK button is grey out.

       

      appreciate your kind assistance. thanks.

      • Fowmy's avatar
        Fowmy
        Super User

        alicelpn 

        As per your original question and the explanation you provided, my solution works, great!
        Now it is a matter of configuring and adapting it to your model including the relationship issue.

        You may accept this as a solution and open new a question to sort out the relationship problem.

        ________________________

        Did I answer your question? Mark this post as a solution, this will help others!.

        Click on the Thumbs-Up icon on the right if you like this reply 🙂

        YouTube, LinkedIn