Forum Discussion
weekly running total
- Anonymous2 years ago
Hi ahmoh43
Thanks for the solution MFelix provided, and i want to offer some information for you to refer to.
Sample data
Create a measure.
MEASURE = CALCULATE ( SUM ( 'Table'[Value] ), ALLSELECTED ( 'Table' ), 'Table'[WeekNo] <= MAX ( 'Table'[WeekNo] ) )Then put the the measure to the y-axis.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi SteffanieJ ,
Yes you can do that depending on the result you want to achieve you can add additional filter to the calculation to get the previous year values.
Depending on how you have the setup of your model you can do it using the DATEADD syntax for example or SAMEPERIODLASTYEAR or forcing the year to be equal to MAX(Year) - 1
MFelix - I have the date add formula in the 2023 and 2024 columns. Here are the formulas used last year but when I change them to -2 and -1 year and then change my created year to 2025 the running total column goes blank.
- MFelix1 year agoSuper User
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.