owlet0214
6 years agoHelper I
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 that day.
What I want to get is the increased number of people in each city from the day before.
That's the Difference column in the table below.
I know it's not a DAX-friendly process, but please help.
- 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])