Forum Discussion
Anonymous
4 years agoNot applicable
Dax function referencing another linked table
Hi Experts, I have 2 tables, Table 1 and Table 2 with ID field used to link both tables. I will like to create a column in table 1 that outputs "1" if a column in Table 2 equals to a specific val...
- Anonymous4 years ago
Hi Anonymous ,
I have created a data sample:
Let's assume "Power BI" is the specific value, please try:
New = var _t=SUMMARIZE(FILTER('Table 2',[ID]=EARLIER('Table 1'[ID])),[Value]) RETURN IF("Power BI" IN _t,1,0)Or use
New 2 = var _t=SUMMARIZE( FILTER('Table 2',RELATED('Table 1'[ID]) && [Value]="Power BI"),[ID]) return IF([ID] in _t,1,0)Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
Hi Anonymous ,
I have created a data sample:
Let's assume "Power BI" is the specific value, please try:
New =
var _t=SUMMARIZE(FILTER('Table 2',[ID]=EARLIER('Table 1'[ID])),[Value])
RETURN IF("Power BI" IN _t,1,0)
Or use
New 2 =
var _t=SUMMARIZE( FILTER('Table 2',RELATED('Table 1'[ID]) && [Value]="Power BI"),[ID])
return IF([ID] in _t,1,0)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.