Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone,
I hope you're doing well. I have a question regarding creating a running balance DAX formula using a specific data table.
I'm working with a data table that includes columns for Date, Transaction Type (debit or credit), and Amount. My goal is to calculate a running balance based on these transactions. Essentially, I want to derive a cumulative balance that updates with each new transaction, adjusting based on whether it's a debit or credit.
Thank you in advance for any help you can provide.
Solved! Go to Solution.
Create a dates table, relate that to your fact table and create this sample measure.
Cumulative Total Revenue =
CALCULATE (
[Total Revenue],
FILTER ( ALL ( Dates ), Dates[Date] <= MAX ( Dates[Date] ) )
)
Please see attached pbix for details.
hi @ronaldbalza2023 ,
Did you use a separate dates table as suggested? On top of that, you must use the date column from that dates table as the filter modifier , ALL ( Dates ), is applied to that table.
hi @ronaldbalza2023 ,
Did you use a separate dates table as suggested? On top of that, you must use the date column from that dates table as the filter modifier , ALL ( Dates ), is applied to that table.
Create a dates table, relate that to your fact table and create this sample measure.
Cumulative Total Revenue =
CALCULATE (
[Total Revenue],
FILTER ( ALL ( Dates ), Dates[Date] <= MAX ( Dates[Date] ) )
)
Please see attached pbix for details.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |