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.
I have two tables like below:
Table 1
Index | Make | Model | Type |
0 | Toyota | Corolla | Car |
1 | Toyota | Yaris | Car |
2 | Suzuki | Katana | Motorcycle |
Table 2
Make | Model | Type |
Toyota | Corolla | Car |
Suzuki | Katana | Motorcyle |
I want to add a custom column using Power Query to Table 2 that looks up the "Make", "Model" and "Type" values and returns the corresponding "Index" from Table 1. Example output is below.
Make | Model | Type | Custom |
Toyota | Corolla | Car | 0 |
Suzuki | Katana | Motorcyle | 2 |
I've tried doing this using multiple combinations of List.PositionOf and List.MatchAll, but haven't been successful so far and would appreciate some help.
Solved! Go to Solution.
@Anonymous
you can use merge. press ctrl and choose matching columns. you can see 1,2,3 in the column name
Proud to be a Super User!
@Anonymous
you can use merge. press ctrl and choose matching columns. you can see 1,2,3 in the column name
Proud to be a Super User!
you are welcome
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
107 | |
105 | |
87 | |
61 |