Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |