Forum Discussion
hassanh_2
3 years agoNew Member
DAX Function to Create a Column Based on condition / filter in another column
Hello, Im trying to create a new column that returns a value from another table based on condition / filter. As you see I have the following 2 tables. I want to create a new column in Table 2, i...
tamerj1
Community Champion
3 years agoHi hassanh_2
Please try
NewColumn =
MAXX (
TOPN (
1,
CALCULATETABLE ( Table2, USERELATIONSHIP ( Table1[Acct Nr], Table2[Acct Nr] ) ),
Table2[Log_ID], ASC
),
Table2[Sales Person]
)- hassanh_23 years agoNew Member
Hi, Thanks!
It seems you switched the Table Numbers but I tried both ways and the new column didnt return any value!