title: Can I calculate the difference between values from the same column and return another column? How?
body: <p>I'm new learning DAX on Power BI and I have to calculate the difference between values with different dates in a table like as shown here (My apologizes for presentation of the table, I had problems uploading it):</p>
  
  <h2>Object  | Id    | Year</h2>
  
  <p>O_01    | 675   |2018</p>
  
  <p>O_02    | 415   |2018</p>
  
  <p>O_03    | 601   |2018</p>
  
  <p>O_01    | 969   |2017</p>
  
  <p>O_02    | 964   |2017</p>
  
  <p>O_03    | 672   |2017</p>
  
  <p>I would like generate a new table that shows the difference values between years per object, like this:</p>
  
  <h2>Object  |Difference</h2>
  
  <p>O_01    |Difference 1</p>
  
  <p>O_02    |Difference 2 </p>
  
  <p>O_03    |Difference 3</p>
  
  <p>I was looking for a way to solve this using DAX, but I couldn´t find a solution, only solutions using measures, but in my real problem I have to deal with 416 objects and I think it is not a good idea make 416 measures.</p>
  
  <p>I will be thankful if somebody knows a way to solve this. This is a problem on Power BI especifically.</p>
  
  <p>Regards.</p>