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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
v-fenling-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.