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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.