Forum Discussion

webstark's avatar
webstark
Frequent Visitor
9 years ago

Count of changes between two dates

Hi,

 

Just say I have this table in BI.

 

Location                Rack 1 (quant)        Rack 2          Rack 3                Date

S1                                12                          12              33                     1/4/17

S1                                 13                         20               8                       1/5/17

S2

S2

S2

S3.....

 

I want to calculate the differences in the Rack columns between the last two dates and display it in the same record as the last date.

 

So, I would have new column/measure that would say Rack 1 change = 1, Rack 2 change = 8, Rack 3 change = -25

 

Is this even possible??