Forum Discussion

Mardo's avatar
Mardo
Frequent Visitor
8 years ago
Solved

Table Relations - counting the missing rows

Hello,   I have created two different tables from the main CUBE. The first table contains 1544 rows and shows the employee in 2017. The second table has 1804 rows that shows the number of employees...
  • v-yuta-msft's avatar
    v-yuta-msft
    8 years ago

    Hi Mardo,

     

    So your requirement is equal to achieve rows only appear in table1 and rows only appear in table2, right?

     

    Merge(Left Anti and Right Anti) can meet your requirement, click query editor->Merge Queries->Select join kind as left anti or right anti.

     

    After merged, you get two tables that contains only people left the company and only people joined the company.

     

    Finally, apply and create a measure using count(table) to calculate the number of people.

     

    Regards,

    Jimmy Tao