Forum Discussion

mshashmi's avatar
mshashmi
Frequent Visitor
9 years ago
Solved

Using where clause

Hi   I want to make a visual where I want something like 'where' clause.  Suppose I have two tables and I want those rows from table1 where table1.column1=table2.column3   Can it be done using c...
  • v-huizhn-msft's avatar
    v-huizhn-msft
    9 years ago

    Hi mshashmi,

    You can use CROSSJOIN function as follows.


    First, change your column header name, which make them different in different tables. Because, crossjoin function is unsupported for same column names.



    Then, click "New Table" under Modeling on Home page, type the following formula, you will get expected result.

    Table = FILTER(CROSSJOIN(Table1,Table2),Table1[Tab1-Column2]=Table2[Tab2-Column2])



    Best Regards,
    Angelia