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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Subtract values of previous date from current date

Hello,

 

I'm currently trying to create a new measure to find the difference of values between the current week ending date and the previous. The would be a running date, so it would always the difference between the  most recent week ending date and the last.

The highlighted column is the desired output. Would you guys know how to best go about this?

kzt7nsc_0-1702324612984.png

 

 

Thank you in advance!

 

3 REPLIES 3
TomMartens
Super User
Super User

Hey @Anonymous ,

 

you can solve the "previous" value challenge using the DAX function OFFSET, I recommend reading these articles:

I think your description "... current week ending date and the previous ..." does not match the data of the screenshot, as the distance between the two dates is 24 days.

 

Hopefully the articles will help to tackle your challenge.



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Thank you for the links! I went back and changed the dates to match what I actually meant. From week ending 11/25 to week ending 12/2

Hey @Anonymous ,

 

create a pbix that contains sample data, but still reflects your data model (tables, relationships, calculated columns, and measures). Uploade the pbix to OneDrive, Google Drive, or Dropbox and share the link. If you are using a spreadsheet to create the sample data instead the manual input method share the spreadsheet as well.

 

Explain the expected result based on the sample data you provide.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors