March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have two tables.
TABLE 1
Product ID | ICD Code |
1 | A |
1 | B |
1 | C |
2 | A |
3 | B |
3 | D |
My second table looks like this:
TABLE 2
Product ID |
1 |
3 |
I would like to match table 2 with table 1, so that the result looks like the following:
Expected Result
Product ID | ICD Code |
1 | A |
1 | B |
1 | C |
3 | B |
3 | D |
Since a simple lookup doesnt work here, does someone have a solution of how I can still match both tables preferably with DAX? Thanks so much as always!
Solved! Go to Solution.
Hi @Anonymous
you can do it in report view like this:
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Hi @Anonymous
If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!
If not, please kindly elaborate more.
Hi @Anonymous
you can do it in report view like this:
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
@Anonymous , Power query way
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
DAX way
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
Hi @Anonymous
You can do a merge in Power Query.
Go to Power Query Editor, under Home tab - Combine, select Merge Queries. Choose column Product ID as the keys for both tables and select either Left Outer or Right Outer Join kind, depending on which table comes first. If TABLE 2 comes first, choose Left Outer, and if TABLE 2 is the second table, choose Right Outer. After the join, expand the data.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
93 | |
90 | |
86 | |
76 | |
49 |
User | Count |
---|---|
166 | |
149 | |
99 | |
73 | |
57 |