Forum Discussion
giuliapiazza94
Helper IV
4 years agoMerge query with dax
Hi, I have two tables like 1 2 I'd like to have the values "Farm" in the first table using DAX. How can I to do? Thank you all 🙂
- 4 years ago
try this to add a new column in table 1:
Farm = LOOKUPVALUE('Table 2'[Farm],'Table 2'[customer],'Table 1'[Customer])output:If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
smpa01
Community Champion
4 years agogiuliapiazza94 you can create relationship between t1 and t2 through Customer column and then you can create a calculated column in t1 like following
Farm from t2 = RELATED(t2[Farm])giuliapiazza94
Helper IV
4 years agoI've tried but i've this error
but there is a relationship 1:m between two tables