Forum Discussion

sglendenning's avatar
sglendenning
Helper II
6 years ago
Solved

Subtract multiple columns from two tables

I have two tables organized by MMYYYY and sales rep with the exact same data columns for attempts, contacts, sales (and 20 other data columns) but need to subtract the same columns from one table to the other.  I'm trying to use power query but am stumped as to the best solution.

7 Replies

    • sglendenning's avatar
      sglendenning
      Helper II

      Table1

      DateSalesRepAttemptsContactsSales
      202004Joe100105
      202004Sue1502010
      202003Joe200202
      202003Sue503020

       

      Table2

      DateSalesRepAttemptsContactsSales
      202004Joe1051
      202004Sue511
      202003Joe2052
      202003Sue410
           

       

      I need to subtract Table1 from Table2 by date and SalesRep.  So output would be;

      DateSalesRepAttemptsContactsSales
      202004Joe9054
      202004Sue145199
      202003Joe180150
      202003Sue462920