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):
Object | Id | Year
O_01 | 675 |2018
O_02 | 415 |2018
O_03 | 601 |2018
O_01 | 969 |2017
O_02 | 964 |2017
O_03 | 672 |2017
I would like generate a new table that shows the difference values between years per object, like this:
Object |Difference
O_01 |Difference 1
O_02 |Difference 2
O_03 |Difference 3
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.
I will be thankful if somebody knows a way to solve this. This is a problem on Power BI especifically.
Regards.