Forum Discussion
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??
1 Reply
- cs_skitResolver IV
In some cases referencing last row is easy like here in a calculated column:

some cases you need more like in this example where I used date to rank and you can also use additional conditions in that expression:
http://community.powerbi.com/t5/Desktop/Last-country-visited-timeline-logic/m-p/206028#M90786
hope this helps you get a solution