Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
mvgust
Helper III
Helper III

Running Total based on Funding Year

I've got a data source with a funding ID and I need to create a column with the running total.  See below for an example.

How would I create the running total column?

FundingIDFunding YearAmountRunning Total
4555201910001000
4555202020003000
4555202130006000
1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @mvgust 

if you need to classify by id then sum total, try this

 CALCULATE(SUM('Table'[Amount]),FILTER(ALLEXCEPT('Table','Table'[FundingID]),'Table'[Funding Year]<=MIN('Table'[Funding Year])))

 result

vxiaotang_0-1628736802530.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @mvgust 

Have you solved this problem? If yes, could you kindly accept the answer helpful as the solution (or kindly share your solution ). so the others can find it more quickly.
really appreciate!
Any question, please let me know. Looking forward to receiving your reply.

 

 

Best Regards,

Community Support Team _Tang

v-xiaotang
Community Support
Community Support

Hi @mvgust 

if you need to classify by id then sum total, try this

 CALCULATE(SUM('Table'[Amount]),FILTER(ALLEXCEPT('Table','Table'[FundingID]),'Table'[Funding Year]<=MIN('Table'[Funding Year])))

 result

vxiaotang_0-1628736802530.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

ChrisMendoza
Resident Rockstar
Resident Rockstar

Is this what you mean?

image.png

Measure :=
VAR _year =
    MAX ( TableName[Funding Year] )
RETURN
    CALCULATE ( SUM ( TableName[Amount] ), TableName[Funding Year] <= _year )





Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.