I am a new user of power bi visuals and to Dax formulas,
I have a dataset logged from the server for readings of a electric meter and it's logged every minute, I want to write a Dax formula / measure to calculate the daily consumption as the data is accumulative from previous value like the below:
Time Stamp Value
01-Jan-21 00:00:00 5
01-Jan-21 00:01:00 8
01-Jan-21 00:02:00 9
01-Jan-21 23:59:00 11
02-Jan-21 00:00:00 15
So i want to calculate the consumption from the first value of 2nd Of Jan - first value of 1st of Jan so it should be 02-Jan-21 00:00:00 - 01-Jan-21 00:00:00 and So on for the next days.
How to get the minimum value of the day and subtract from previous minimum value.