Forum Discussion
e175429
Helper IV
1 year agoRunning Totals
Hello All, This is a sample of my data: Anyone know what I should do to get the running totals for the Users? Mind you, my actual data is over 43,000 rows. I tried to upload a sample ...
Shahid12523
Community Champion
1 year agoPower BI (DAX):
Running Total =
CALCULATE(
COUNTROWS('Table'),
FILTER(
ALLSELECTED('Table'),
'Table'[User] = MAX('Table'[User]) &&
'Table'[PaidDate] <= MAX('Table'[PaidDate])
)
)
SQL:
COUNT(*) OVER (PARTITION BY [User] ORDER BY PaidDate) AS RunningTotal