Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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?
Category | Total Amount up until last week (excluding current week) | Total Amount current (Including current week) | Difference |
A | 12 | 15 | 3 |
B | 11 | 8 | -3 |
C | 5 | 7 | 2 |
D | 1 | 0 | -1 |
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.