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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors