Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have two queries as per below. I am trying to do an M code to pull over Employee Title into query B using Employee ID as the unique identifier. I would need this to be done in M code vs. DAX, please. Thanks so much.
Employee ID | Employee Title | Employee ID | Employee Name | Employee Title | ||||
12345 | Lead | 12345 | Joy, Ann | ? | ||||
67890 | Lead | 67890 | Smith, Joey | ? | ||||
111111 | Technician | 111111 | Kain, Lisa | ? | ||||
444444 | Technician | 444444 | Coy, Junior | ? | ||||
666666 | Lead | 666666 | King, Jaqueline | ? | ||||
Query A | Query B |
Solved! Go to Solution.
Hi @jcastr02 ,
you can use the Merge operation in Power Query to do this:
Merge queries (Power Query) - Excel (microsoft.com)
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @jcastr02 ,
you can use the Merge operation in Power Query to do this:
Merge queries (Power Query) - Excel (microsoft.com)
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
User | Count |
---|---|
8 | |
6 | |
6 | |
5 | |
5 |
User | Count |
---|---|
9 | |
8 | |
6 | |
6 | |
6 |