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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PeterChu
Frequent Visitor

Running sum by date , person

Hi Everyone,

I am trying to do a running sum by group in PowerBi DeskTop. Thank you.

 

Here is what my data looks like, I would like a running sum of the times in a new column.

Thank you all.

 

2018-02-07_132947.png

 

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @PeterChu

 

If you want to do it as a calculated column then please try this :

 

Running Total = 
    CALCULATE(
        SUM(Table1[Times]),
        FILTER(
            'Table1',
            'Table1'[MemberId]=EARLIER('Table1'[MemberId])
            && 'Table1'[Date] <= EARLIER('Table1'[Date])
            )
            )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
sunshine1
Frequent Visitor

thanks this formula worked. I saw a bunch of other threads for running total but this was the only one that got the desired result.....

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @PeterChu

 

If you want to do it as a calculated column then please try this :

 

Running Total = 
    CALCULATE(
        SUM(Table1[Times]),
        FILTER(
            'Table1',
            'Table1'[MemberId]=EARLIER('Table1'[MemberId])
            && 'Table1'[Date] <= EARLIER('Table1'[Date])
            )
            )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

It's work. Thank you very much.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors