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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a column in Table A that I need to return a value based on a calculation using a value from another column in table A and also a value in Table B.
Table A & B are linked with a one to many relationship but can't seem to figure out how to reference this in the query editor, anyone have any ideas how to achieve this?
Depends on which end of the relationship Table A is. If Table A is the many side then in a calculated column on Table A you can get a value from Table B using RELATED. If Table A is the one side then you would use RELATEDTABLE along with an iterator like MINX, MAXX.
I'm not able to use any of these formula it seems, although I have a one to many relationship established in the power query editor itself for a calculated column.
So for example, left table is my customer lookup, right table is my data table A.
I want the COGS column to be a calculation taking "Volume" from data table A * "Cogs Rate" from customer lookup.
The relationship is managed based on the Customer/Material unique key I have created.
Any ideas?
That should just be
COGS =
'Table A'[Volume] * RELATED ( 'Customer'[Cogs rate] )
I just cannot seem to reference the Customer_Lookup table in this formula, only Table A, not sure why as the relationship is there in place.
Is it giving an error? If there are squiggly red lines in the formula bar it could just be Intellisense playing up.
This is the error I am getting
I should also mention I am trying to create this custom column inside the data table itself
That's in Power Query, its supposed to be in DAX. Select New Column from the modelling tab and put the formula in there.
I'm trying to achieve this in Power Query in the editor, is it not possible?
I think it is but I don't remember the syntax for doing it in Power Query.
Thanks for your help thus far I appreciate it.
Does anyone have any ideas on how to achieve this?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
10 | |
9 | |
8 |