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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Difference in total value from last week to current week

Hello, 

 

I am attempting to calculate the total value of a category up until the previous week (cut off on the friday of that week) and then have another column that shows the current count at that point in time. So i can then total the difference to utilize conditional formatting to show the change on a rolling basis. I have a date table with week numbers and a table with the values. Is this possible with DAX?

 

CategoryTotal Amount up until last week (excluding current week)Total Amount current (Including current week)Difference
A12153
B118-3
572
D10-1
1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file.

 

Picture1.png

 

Link to the pbix file 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors