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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I want to create a measure where I want to show the incremental sum of the last 6 weeks.
For example the values for 05/18 and 05/25 should show just 1 ( 289-288) and rest should show 0 ( 288-288).
Any help how to achieve this?
So basically instead of the total sum I want to show the incremental sum her in the measure
Solved! Go to Solution.
Hi, @Anonymous
I create a sample table:
Then create a new measure and try the follow DAX expression:
Incremental_Assessment =
VAR CurrentWeek = MAX('Table'[Date])
VAR PreviousWeek = CALCULATE(MAX('Table'[Date]), DATEADD('Table'[Date], -7, DAY))
VAR CurrentWeekSum = CALCULATE(SUM('Table'[Total Assessments]), 'Table'[Date] = CurrentWeek)
VAR PreviousWeekSum = CALCULATE(SUM('Table'[Total Assessments]), 'Table'[Date] = PreviousWeek)
RETURN
IF(CurrentWeekSum > PreviousWeekSum, CurrentWeekSum - PreviousWeekSum, 0)
Here is my preview:
If you want to show the last 6 weeks, you can use the filter or slicer to filter it.
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
I create a sample table:
Then create a new measure and try the follow DAX expression:
Incremental_Assessment =
VAR CurrentWeek = MAX('Table'[Date])
VAR PreviousWeek = CALCULATE(MAX('Table'[Date]), DATEADD('Table'[Date], -7, DAY))
VAR CurrentWeekSum = CALCULATE(SUM('Table'[Total Assessments]), 'Table'[Date] = CurrentWeek)
VAR PreviousWeekSum = CALCULATE(SUM('Table'[Total Assessments]), 'Table'[Date] = PreviousWeek)
RETURN
IF(CurrentWeekSum > PreviousWeekSum, CurrentWeekSum - PreviousWeekSum, 0)
Here is my preview:
If you want to show the last 6 weeks, you can use the filter or slicer to filter it.
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Anonymous for the update
I actually wanted the incremental to run like current week compared to the 6th week in past so I tweeked the measure a bit and I think I've got my output .
I wanted to subtract my current week count with the count from 6th Week in the past ( Currentweek - 6WeekAgo count)
I want something like below , the last column
The below measure is still not working,
any urgent help here?
Hi,
Share the download link of the PBI file.
Instead of addition can I get subtraction here?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 64 |