This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello everyone!
I am relatively new to Power BI, specifically to using Power Query. I have multiple source files, which all use a certain code to distinguish certain budgets. These codes have a short description, which is always the same for the code. The data looks like the sample below.
In order to define the relationships between my different sources, I'm trying to create a 'master' tab in Power Query, that contains all unique codes and descriptions. How can I do this? I know about List.Distinct, but that doesn't work if I want to do it for two columns. If I try do define relationships now, it doesn't work because the codes are not unique.
The second table shows what I'm trying to achieve.
Thanks so much for helping and thinking with me!
What I have:
| Code | Description | Amount |
| 9999X1111 | Car parts | 100 |
| 8888X2222 | Truck parts | 60 |
| 9999X1111 | Car parts | -10 |
What I want to create:
| Code | Description |
| 9999X1111 | Car parts |
| 8888X2222 | Truck parts |
Solved! Go to Solution.
you mean like this?
1. Remove the amount column
2. highlight both columns and right click remove duplicates.
see attached.
but there are various ways, this is just one way.
Proud to be a Super User!
you mean like this?
1. Remove the amount column
2. highlight both columns and right click remove duplicates.
see attached.
but there are various ways, this is just one way.
Proud to be a Super User!
Thanks so much! I was thinking way to difficult to solve this easy problem.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 39 | |
| 33 | |
| 24 | |
| 23 |