Hi, i am new to TD,, how to compare this and last year sales differences , advance thnks

General
Scout

Hi, i am new to TD,, how to compare this and last year sales differences , advance thnks

       sales    year            sales_diff 
       50    16/01/01
      10      17/01/01
      100    18/01/01
      200   19/01/01