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.
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])
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 |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |