I have a question on how to calculate the sum of the last previous working day.
Here is my data set:
Date Name Amount
16/09/20 A 10
17/09/20 A 10
17/09/20 B 30
18/09/20 A 50
21/09/20 A 20
21/09/20 B 60
22/09/20 B 50
In my dashboard, I have a filter to choose a date of display and I see the sum of today; last previous working day and second last previous working day.
So when I put myself at the date 17/09/2020, I should see this:
- Sum for D (17/09/2020) -> 40
- Sum for D-1 (16/09/2020) -> 10
- Sum for D-2 (15/09/2020) -> blank
When I put myself at the date 18/09/2020, I should see this:
- Sum for D (18/09/2020) -> 50
- Sum for D-1 (17/09/2020) -> 40
- Sum for D-2 (16/09/2020) -> 10
When I put myself at the date 21/09/2020, I should see this:
- Sum for D (21/09/2020) -> 80
- Sum for D-1 (18/09/2020) -> 50
- Sum for D-2 (17/09/2020) -> 40
I don't find a way to sum for a previous day using calculate or sum and previousday is not helpful in my case.
Thanks in advance for the help,