Forum Discussion

owlet0214's avatar
owlet0214
Helper I
6 years ago
Solved

Difference from previous cell

Hello,   I want to make a custom column that calculates the difference from the previous cell. The testedPositive is not the increasing number of people on that day, but the cumulative total up to...
  • Greg_Deckler's avatar
    Greg_Deckler
    6 years ago
    Unless it is prefecture columns throwing things off I would think:

    diff = [testedPositive] - maxx(filter('prefectures4',[prefectureNameE]=earlier([prefectureNameE]) && [Last date] <earlier([Last date])),[testedPositive])