Forum Discussion
Anonymous
8 years agoNot applicable
Calculate Previous Minute Values
Hi All, I have a table which contains current and voltages values for each 3 minutes of intervel. I would like to calculate the previous minute value from the current minute value. Sample da...
- 8 years ago
Hi Anonymous
Please try this
Previous Value = VAR pre = MAXX(FILTER(ALL(Sheet2),[Time]<EARLIER([Time])),[Time]) RETURN MINX(FILTER(Sheet2,Sheet2[Time]=pre && 'Sheet2'[Key] = EARLIER('Sheet2'[Key])),[VALUE])
Phil_Seamark
8 years agoMicrosoft Employee
Hi Anonymous
Please try this
Previous Value =
VAR pre = MAXX(FILTER(ALL(Sheet2),[Time]<EARLIER([Time])),[Time])
RETURN
MINX(FILTER(Sheet2,Sheet2[Time]=pre && 'Sheet2'[Key] = EARLIER('Sheet2'[Key])),[VALUE])Anonymous
8 years agoNot applicable
Phil_Seamark That was quick and cool...
Thanks..:):)