Forum Discussion
Join two tables without unique column (DAX)
sdjensen: This is what I tried
test = CALCULATETABLE(VALUES('table2'[def_id]),FILTER(ALL('table2'[experiment_id]),CONTAINS(VALUES('table1'[experiment_id]),'table1'[experiment_id],'table2'[experiment_id])),(COUNTROWS(table2')))
error: The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column.
Whenever I try to enter 'var' and return in my measure I get syntax error
Please make sure that you type the formala exactly like mine - I tested it with demo data in a small model I created and it works like a charm. The VAR and RETURN is cusual for this to work.
You should still make sure to replace ; with , and of course replace table/column names to match your own data.
You can't test the CALCULATETABLE syntax with a measure. The code returns a table, so if you want to test it without the return you should select 'new table' instead, but you have to leave out the countrows part then.