Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
SteffanieJ
Frequent Visitor

Weekly running total difference 2023-2024

Hello!  Last year I had a running total measure that worked perfectly.  When I updated my data so my filter is set to 2025 it stopped working.  How do I update this formula to include filtering by year?

 

SteffanieJ_0-1735830938888.png

SteffanieJ_1-1735830965960.png

This is how it is looking now that I changed my filter to 2025.

SteffanieJ_2-1735831025942.png

This is the formula that is pulling in the data in the 2023 and 2024 columns. (just updated to -2 and -1 year).

OD SO 2023 = CALCULATE([SO Total Sales Shipped/Open],DATEADD('EB Orders'[SO CrtnDate].[Date],-2,year))
OD SO 2024 = CALCULATE([SO Total Sales Shipped/Open],DATEADD('EB Orders'[SO CrtnDate].[Date],-1,year))
 
It does work fine for my 2024-2025 comparison.
SteffanieJ_3-1735831145826.png

 

5 REPLIES 5
Anonymous
Not applicable

Hi, @SteffanieJ 

May I ask if you have gotten this issue resolved? If it is solved, please share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.


If it is not resolved, I hope you will provide the full .pbix file via OneDrive or SharePoint. Please be careful to remove all sensitive information and we will do our best to provide ideas for your issue.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I did not,  I gave up and created new measures so I could leave the data the way it was before I changed the year.

lbendlin
Super User
Super User

what result do you expect?

I need the same numbers that are showing in the last column, YOY Week Diff Running Total column.

SteffanieJ_0-1735913497378.png

 

you seem to use a couple of nested measures. For troubleshooting you will want to run the raw calculation first  (it is also better for performance and maintainability). You can use EVALUATEANDLOG to see where the legacy logic breaks down.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors