Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alicelpn
Frequent Visitor

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.

1 ACCEPTED SOLUTION

@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



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@alicelpn 


I merged as a new query.

https://1drv.ms/u/s!AmoScH5srsIYgYJ0WwPgp3larIKdNQ?e=Tah5gI

Fowmy_0-1596360614836.png

________________________

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

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.

@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



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors