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
Scale = DATATABLE("Scale",INTEGER,{{1},{1000},{1000000}})
Now , I just want to add one more column to it , so that I can get a cumulative sum like 1, 1001, 1001001
So I added the following measure.. but it seems not be working - Can somoene please help!
RunningTotal = CALCULATE(Sum(Scale[Scale]),FILTER(Scale,Scale[Scale]<=VALUE(Scale[Scale])))
Solved! Go to Solution.
Hello @Sachy123 ,
We just need to feed it the current row in a variable and use it to filter our sum:
Running Total =
VAR RowScale = Scale[Scale]
RETURN
CALCULATE (
SUM ( Scale[Scale] ),
Scale[Scale] <= RowScale
)*Removed the unneeded filter.
Hello @Sachy123 ,
We just need to feed it the current row in a variable and use it to filter our sum:
Running Total =
VAR RowScale = Scale[Scale]
RETURN
CALCULATE (
SUM ( Scale[Scale] ),
Scale[Scale] <= RowScale
)*Removed the unneeded filter.
I was just not able to refer to the current row-- thanks for this tip
RunningTotal = CALCULATE(Sum(Scale[Scale]),FILTER(ALL(Scale), Scale[Scale] <= MAX(Scale[Scale])))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 118 | |
| 98 | |
| 70 | |
| 69 | |
| 65 |