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
Jos13
Helper III
Helper III

Lookup in query editor

Hi All,

 

I have the following data

Jos13_0-1611740923318.png

I then created a reference of this table and removed all columns except Employee to create the Employee table. I removed duplicate values and created an index column as employee Id.

Jos13_1-1611741094402.png

Is there any way to get this Id in the Sales table? I tried the merge option, but it isn't working. 

 

merge.png

 

Please help

1 ACCEPTED SOLUTION
Payeras_BI
Super User
Super User

Hi again @Jos13 ,

 

Forgive me if I am not getting your point but when I recreate your steps, duplicating the Sales query to create the Employees Table, I get what I would expect:

 

Payeras_BI_0-1611752756847.png

 

 

Payeras_BI_1-1611752784268.png

 

Please detail further what prevents you from proceeding this way in order to assist you.

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

6 REPLIES 6
Payeras_BI
Super User
Super User

Hi @Jos13 ,

 

You are welcome. Thanks for getting back to me with the result.

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Payeras_BI
Super User
Super User

Hi again @Jos13 ,

 

Forgive me if I am not getting your point but when I recreate your steps, duplicating the Sales query to create the Employees Table, I get what I would expect:

 

Payeras_BI_0-1611752756847.png

 

 

Payeras_BI_1-1611752784268.png

 

Please detail further what prevents you from proceeding this way in order to assist you.

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Payeras_BI
Super User
Super User

Hi @Jos13 ,

 

Instead of referencing try by duplicating the query.

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Hi @Payeras_BI,

I can merge if I duplicate. But If I add sales of a new employee in the Sales table, it won't get reflected in the Employee table. I need to capture the new employee as well. Duplicating the table won't give us the outcome as expected.

Hi @Jos13 ,

 

I understand both queries are connected to the same Source and is there where you update the Sales table. Is this correct?

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

You are right @Payeras_BI 

I was entering the data directly into Power BI using Enter Data from the Home ribbon. My bad. 

I tried data load from an Excel file and it worked perfectly. 

Thank you so much! I really appreciate it 😊

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.