Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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?
User | Count |
---|---|
13 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |