Feb 05 2022 11:02 AM
Hello people,
I'm looking for a solution to add to the Pivot Table RUNNING TOTALS of sales over the LAST 365 DAYS. For example 1st April 2021 = SUM Sales 02.04.2020 and 01.04.2021. Simple file example attached.
Thank you in advance for your advice and tips.
Feb 05 2022 11:51 AM
@PavelDrg Not sure but perhaps like in the attached file?
Feb 05 2022 12:11 PM
Feb 05 2022 02:51 PM
SolutionFeb 06 2022 01:40 AM
As variant
Running 365 Total:=
VAR maxDate =
MAX ( Sales[Date] )
VAR minDate = maxDate - 365 + 1
RETURN
CALCULATE (
[Sales Total],
ALLEXCEPT ( Sales, Sales[Date] ),
Sales[Date] >= minDate
&& Sales[Date] <= maxDate
)
if build on the same table and without time intelligence.