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! Learn more

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.