Forum Discussion
Anonymous
4 years agoNot applicable
Refer column from another table in formula
Hello Folks, I have two tables Table A UID Name Age B_Percent_Current DID 1 Donald Trump 50 12.5 1 2 George Bush 52 25 2 3 Kamal Harris 23 9.75 2 4 Zelensky 35 ...
hashtag_pete
Helper V
4 years agoHi,
there are two ways to do it in Power Query:
2. below is a code snippet from what I have done, but I find it hard to copy M Code from one case to another. Basically I used the "Index" to refer to another table, this would be your DID. Then you take the DID of TableA and look in the TableReference (Table B), where each [Index] needs to be replaced by [DID]
=Table.AddColumn(#"StepBefore", "Column", each Table.AddColumn(#"Step Before", "Column", each (let curIndex = [Index] in Table.SelectRows(TableReference, each [Index] = curIndex)){0}[Column]I can do a mock up based on your table later on, but it will take some time as I got some things to do...
best hashtag_pete