Forum Discussion
PeterChu
8 years agoFrequent 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. ...
- 8 years ago
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]) ) )
Phil_Seamark
Microsoft Employee
8 years agoHi 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])
)
)- PeterChu8 years agoFrequent Visitor
It's work. Thank you very much.