Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |