Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
New to Power BI
This seems very easy but I can not figure out.
I have 2 tables A and B I can not relate them. I need to add column "Lookup" to Table B. Lookup comes from Tabe A
See above for tables
| Table A | Table B | |||||
| Fruit | Color | Amt | Fruit | Color | Lookup | |
| Apple | R | 5 | Apple | R | 5 | |
| Orange | O | 2 | Orange | O | 2 | |
| Peach | O | 7 | Peach | O | 7 | |
| Pair | R | 8 | Pair | R | 8 | |
| Berry | F | |||||
| Apple | R | 5 | ||||
| Orange | O | 2 | ||||
| Pair | R | 8 |
Solved! Go to Solution.
@MikeLombardi - Try LOOKUPVALUE or MAXX(FILTER(...),...) like:
Lookup Column =
LOOKUPVALUE('TableA'[Amt],'TableA'[Fruit],[Fruit],'TableA'[Color],[Color])
or
Lookup Column =
MAXX(FILTER('TableA','TableA'[Fruit]=[Fruit] && 'TableA'[Color]=[Color]),'TableA'[Amt])
@MikeLombardi - Try LOOKUPVALUE or MAXX(FILTER(...),...) like:
Lookup Column =
LOOKUPVALUE('TableA'[Amt],'TableA'[Fruit],[Fruit],'TableA'[Color],[Color])
or
Lookup Column =
MAXX(FILTER('TableA','TableA'[Fruit]=[Fruit] && 'TableA'[Color]=[Color]),'TableA'[Amt])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |