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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
marcelr
Regular Visitor

Running total of transactions in a given month

Hi all,

 

I'm trying to calculate a running total, but I'm having trouble getting it right.

I have a table with the columns Date and Amount with transactions from the last two years.
I have created a visual which shows the total amount on each day and added a visual filter for a specific year and month.
For January 2024, for example, it looks like this:

marcelr_0-1708033762602.png


(Note: non-working days are missing, as there are no transactions)

However, I would now like to display the cumulative total of all previous days.

If possible, I would also like to display the cumulative total from the same period of the previous year (e.g. January 2023)


Can anyone help? Thanks in advance

1 ACCEPTED SOLUTION

Thanks. The Quick Measures helped me to finally get it right.
Here are the measures if anyone is interested:

Amount MTD = TOTALMTD(SUM('Transactions'[Amount]), 'Calender'[Date])

Amount MTD LastMonth = 
CALCULATE(TOTALMTD(SUM('Transactions'[Amount]), 'Calender'[Date]),  DATEADD(Calender[Date], -1, MONTH))

Amount MTD LastYear =
CALCULATE(TOTALMTD(SUM('Transactions'[Amount]), 'Calender'[Date]), SAMEPERIODLASTYEAR(Calender[Date]))

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Please refer to the "Running Total"  Quick Measure.

Thanks. The Quick Measures helped me to finally get it right.
Here are the measures if anyone is interested:

Amount MTD = TOTALMTD(SUM('Transactions'[Amount]), 'Calender'[Date])

Amount MTD LastMonth = 
CALCULATE(TOTALMTD(SUM('Transactions'[Amount]), 'Calender'[Date]),  DATEADD(Calender[Date], -1, MONTH))

Amount MTD LastYear =
CALCULATE(TOTALMTD(SUM('Transactions'[Amount]), 'Calender'[Date]), SAMEPERIODLASTYEAR(Calender[Date]))

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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