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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I wanted to add another column that is a lookup from another table but whenever I type in the table, it doesn't show me the column that I wanted.
Table 1
ContractNo Parent
1 A
2 A
3 B
Table 2
ContractNo GM Month
1 100 Jan
2 200 Jan
3 300 Jan
1 50 Feb
2 60 Feb
3 300 Feb
***** Add column Parent in Table2
Solved! Go to Solution.
@Anonymous ,
new column in table 2
= maxx(filter(Table1, tabel1[contract no] = table2[Contract]), Table1[parent])
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
I've just created a new custom column using the Power Query, sort of a vlookup to populate this Parent column so that I can use it in my slicer. It's working as expected.
Thanks all for your help.
Hi @Anonymous ,
Parent = RELATED(Table1[Parent])
OR
Parent_v2 =
VAR current_contractNo = Table2[ContractNo]
RETURN
CALCULATE ( MAX ( Table1[Parent] ), Table1[ContractNo] = current_contractNo )
If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @Anonymous ,
You can try code like below :-
column =
CALCULATE (
MAX ( '_Table 1'[Parent] ),
FILTER ( '_Table 1', '_Table 1'[ContractNo] = '__Table 2'[ContractNo] )
)
Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi Samarth_18,
I'm having the error - "A single value for column in table 'Table 1' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation to get a single result.
@Anonymous ,
new column in table 2
= maxx(filter(Table1, tabel1[contract no] = table2[Contract]), Table1[parent])
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Hi amitchandak,
I've watched your video and was able to get the expected results. Thanks for that.
This is now my new measure:
Hi Mafs,
I could be wrong here, but could it to be to do with the direction of the relationship? Im not sure if it's good practice to do this but is the cross filter direction on the relationship page currently set to 'single'? If so try setting it 'both' and then see if lookupvalue/related work.
I am now able to work out using this "MAXX(RELATEDTABLE('Table1'), 'Table1'[Parent])".
My issue now is that this newly created measure is not accessible in the slicer.
Any ideas?
Thanks.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.