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
Hello! I have this table:
| count | id | sum |
| 15 | 1 | 15+10+5+3+1 |
| 10 | 2 | 10+5+3+1 |
| 5 | 3 | 5+3+1 |
| 3 | 4 | 3+1 |
| 1 | 5 | 1 |
So I need he "sum" column that will calculate the sum of "count" values starting with current id till the last, not including previous id. Thanks in advance!
Solved! Go to Solution.
Okay, I've figured it out, here is the code:
Okay, I've figured it out, here is the code:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |