Forum Discussion
Anonymous
6 years agoNot applicable
Lookup column from another table
Hi, I want to create a new table in Power BI Desktop that has a column which lookups and returns each value from another column to use as an ID. For example, Table 1 has column A called "Cu...
edhans
6 years agoCommunity Champion
You cannot do it using a formula like that in Excel, which is just looking in cell A1 of Sheet 1. tables in Power BI have no row reference like that.
You could use the LOOKUPVALUE() function that would operate simlarly to how a VLOOKUP in Excel would. See here for documentation of the syntax and an example.
It would be better if you could relate the tables through the CustomerID field though, then use RELATED() from the many side to the one side, or RELATEDTABLE() from the one side to the many side if the relationship. RELATED() would also work for a 1:1, but if you have a 1:1, you are better off just merging the tables in Power Query and bringing in one table. the model is cleaner, leaner, and easier to work with for measure creation.