Forum Discussion

DanielV91's avatar
DanielV91
Frequent Visitor
8 years ago
Solved

Calculated column based on rows position

Having the above table where delta is the difference between curent timestamp and previous one, I want to calculate the column for the far right. Which function should I use, or how can I appro...
  • alexei7's avatar
    alexei7
    8 years ago

    Ah yeah, sorry.

     

    Try it with an equals sign as well as the "<":

     

    Column = "Observation "&CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[id]),Table1[timestamp]<=EARLIER(Table1[timestamp]),Table1[delta]>2)+1

     

    Alex