Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter the calculated table

Hi everyone,

 

I have DAX problem. I'm tring to return only those rows from TABLE1 which have value in [Attribute] column is equal to TABLE2[name] value and TABLE1[project]  = TABLE2[project].

 

Attributes =

 

VAR All_attributes =
SELECTCOLUMNS (
'TABLE1';
"casx_id"; TABLE1[id];
"Attribute"; TABLE1[name];
"project"; TABLE1[project];)


RETURN
FILTER (
All_attributes;
[Attribute] IN VALUES ( TABLE2[name] ) && [project] IN VALUES ( TABLE2[project] ))  <-- it's not working

 

TABLE 1

casx_idAttributeproject
1aaax
2bbby
3cccx

 

TABLE 2

nameproject
aaax
bbby
cccz

 

 

Returned table should look like this: 

 

casx_idAttributeproject
1aaax
2bbby

3 Replies