Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I need support on calculating a cumulative sum of a measure that is using dateadd. Currently the cumulative measure does not start at the date that I want it to...
Let me describe my case:
The following picture contains my sample data, the measures and also the expected value:
Cumulative dateadd example
Appreciated your comments on finding a solution 😉
Thanks!
Here are all measure that I have created
Value Sum = SUM(Data[Value])Time shift in full days = CALCULATE(
Roundup(AVERAGE(Data[Timeshift]),0),
REMOVEFILTERS('Calendar')
)Value shifted by Days =
CALCULATE(
[Value Sum],
DATEADD(
'Calendar'[Date],
[Time shift in full days],
DAY
)
)Value shifted cumulated = CALCULATE(
[Value shifted by Days],
FILTER(
ALL('Calendar'),
'Calendar'[Date] <= MAX('Calendar'[Date])
)
)
Hi @HansHansen ,
Would you please share the data in text format so that we could test the formula?
Best Regrads,
Jay
Here is the sample data:
| Item | Date | Value | Timeshift |
| A0 | 01.08.2022 | 417 | 5 |
| A0 | 02.08.2022 | 312 | 4 |
| A0 | 03.08.2022 | 233 | 4 |
| A0 | 04.08.2022 | 574 | 4 |
| A0 | 05.08.2022 | 159 | 2 |
| A0 | 06.08.2022 | 113 | 8 |
| A0 | 07.08.2022 | 559 | 14 |
| A0 | 08.08.2022 | 95 | 2 |
| A0 | 09.08.2022 | 188 | 13 |
| A0 | 10.08.2022 | 842 | 1 |
| A0 | 11.08.2022 | 714 | 7 |
| A0 | 12.08.2022 | 44 | 4 |
| A0 | 13.08.2022 | 338 | 8 |
| A0 | 14.08.2022 | 154 | 5 |
| A0 | 15.08.2022 | 613 | 14 |
| A0 | 16.08.2022 | 453 | 3 |
| A0 | 17.08.2022 | 697 | 1 |
| A0 | 18.08.2022 | 963 | 8 |
| A0 | 19.08.2022 | 90 | 4 |
| A0 | 20.08.2022 | 433 | 12 |
| A0 | 21.08.2022 | 401 | 7 |
| A0 | 22.08.2022 | 876 | 8 |
| A0 | 23.08.2022 | 384 | 4 |
| A0 | 24.08.2022 | 619 | 11 |
| A0 | 25.08.2022 | 877 | 6 |
| A0 | 26.08.2022 | 419 | 14 |
| A0 | 27.08.2022 | 188 | 14 |
| A0 | 28.08.2022 | 533 | 10 |
| A0 | 29.08.2022 | 259 | 8 |
| A0 | 30.08.2022 | 676 | 13 |
| A0 | 31.08.2022 | 881 | 11 |
| B1 | 01.08.2022 | 697 | 12 |
| B1 | 02.08.2022 | 86 | 3 |
| B1 | 03.08.2022 | 212 | 17 |
| B1 | 04.08.2022 | 672 | 15 |
| B1 | 05.08.2022 | 18 | 17 |
| B1 | 06.08.2022 | 538 | 21 |
| B1 | 07.08.2022 | 76 | 7 |
| B1 | 08.08.2022 | 996 | 24 |
| B1 | 09.08.2022 | 696 | 20 |
| B1 | 10.08.2022 | 186 | 17 |
| B1 | 11.08.2022 | 489 | 22 |
| B1 | 12.08.2022 | 24 | 12 |
| B1 | 13.08.2022 | 648 | 23 |
| B1 | 14.08.2022 | 195 | 12 |
| B1 | 15.08.2022 | 840 | 18 |
| B1 | 16.08.2022 | 995 | 5 |
| B1 | 17.08.2022 | 862 | 7 |
| B1 | 18.08.2022 | 959 | 6 |
| B1 | 19.08.2022 | 769 | 4 |
| B1 | 20.08.2022 | 401 | 22 |
| B1 | 21.08.2022 | 691 | 7 |
| B1 | 22.08.2022 | 51 | 17 |
| B1 | 23.08.2022 | 757 | 21 |
| B1 | 24.08.2022 | 239 | 14 |
| B1 | 25.08.2022 | 536 | 8 |
| B1 | 26.08.2022 | 329 | 17 |
| B1 | 27.08.2022 | 609 | 24 |
| B1 | 28.08.2022 | 526 | 10 |
| B1 | 29.08.2022 | 888 | 13 |
| B1 | 30.08.2022 | 479 | 7 |
| B1 | 31.08.2022 | 672 | 3 |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.