This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Say I have the following table(I will call it 'Schools'):
| School | Week | Pickups |
| Harbor Elementary | 1 | 43 |
| Harbor Elementary | 2 | 21 |
| Harbor Elementary | 3 | 65 |
| Harbor Elementary | 4 | 34 |
| Sinclair Elementary | 1 | 24 |
| Sinclair Elementary | 2 | 16 |
I want to see if I could create a 'running total' column(or measure if that's easier) based on the 'School' and 'Weeks' column, so it would look something like this:
| School | Week | Pickups | Running Total Pickups |
| Harbor Elementary | 1 | 43 | 43 |
| Harbor Elementary | 2 | 21 | 64 |
| Harbor Elementary | 3 | 65 | 129 |
| Harbor Elementary | 4 | 34 | 163 |
| Sinclair Elementary | 1 | 24 | 24 |
| Sinclair Elementary | 2 | 16 | 40 |
How would I go about doing that?
Solved! Go to Solution.
Hey @Anonymous ,
try the following measure, that should do it:
Running Total Pickups =
VAR vLastWeek = MAX( Schools[Week] )
RETURN
CALCULATE(
SUM( Schools[Pickups] ),
Schools[Week] <= vLastWeek
)
Hey @Anonymous ,
try the following measure, that should do it:
Running Total Pickups =
VAR vLastWeek = MAX( Schools[Week] )
RETURN
CALCULATE(
SUM( Schools[Pickups] ),
Schools[Week] <= vLastWeek
)
That worked! Thank you!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 21 | |
| 21 | |
| 21 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 56 | |
| 53 | |
| 49 | |
| 26 | |
| 25 |