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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
XhevahirMehalla
Helper III
Helper III

Finding the rolling balances for a bank Statements (best approach)

Hello -

 

I have created a report using PBI builder - to generate a bank statements. All is looking good and one last remaining is:

Balance for each day (this should include ) the balance for that day after substructing the value of the current transaction.

 

I have the first day balance and the last day balance. 

I want to track back from last day of the month to the first day of the month. 

 

How do I construct this?

 

A measure create on Desktop or a measure create on PBI builder?

 

Please help!

 

Thanks

Xhev

2 ACCEPTED SOLUTIONS
v-sgandrathi
Community Support
Community Support

Hi @XhevahirMehalla,

 

You can determine the daily running balance for your scenario by calculating it directly in Power BI Desktop before exporting to Report Builder. This method is generally more dependable and easier to manage than doing the calculation within the paginated report.

If you have the closing balance and need to work backwards from the end of the month, you can set up a measure in your data model as follows:
Daily Balance :=
VAR ClosingBal =
MAX ( 'Balances'[ClosingBalance] )
VAR MovementsAfterDate =
CALCULATE (
SUM ( 'Transactions'[Amount] ),
FILTER (
ALL ( 'Date'[Date] ),
'Date'[Date] > MAX ( 'Date'[Date] )
)
)
RETURN
ClosingBal - MovementsAfterDate

Create this measure in Power BI Desktop and use it directly in Report Builder. It ensures the logic stays consistent and avoids recomputing inside the paginated layer.

Thank you.

View solution in original post

v-sgandrathi
Community Support
Community Support

Hi @XhevahirMehalla,

 

Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.
Please feel free to reach out Microsoft fabric community forum.

 

View solution in original post

4 REPLIES 4
v-sgandrathi
Community Support
Community Support

Hi @XhevahirMehalla,

 

Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.
Please feel free to reach out Microsoft fabric community forum.

v-sgandrathi
Community Support
Community Support

Hi @XhevahirMehalla,

 

Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.
Please feel free to reach out Microsoft fabric community forum.

 

v-sgandrathi
Community Support
Community Support

Hi @XhevahirMehalla,

 

You can determine the daily running balance for your scenario by calculating it directly in Power BI Desktop before exporting to Report Builder. This method is generally more dependable and easier to manage than doing the calculation within the paginated report.

If you have the closing balance and need to work backwards from the end of the month, you can set up a measure in your data model as follows:
Daily Balance :=
VAR ClosingBal =
MAX ( 'Balances'[ClosingBalance] )
VAR MovementsAfterDate =
CALCULATE (
SUM ( 'Transactions'[Amount] ),
FILTER (
ALL ( 'Date'[Date] ),
'Date'[Date] > MAX ( 'Date'[Date] )
)
)
RETURN
ClosingBal - MovementsAfterDate

Create this measure in Power BI Desktop and use it directly in Report Builder. It ensures the logic stays consistent and avoids recomputing inside the paginated layer.

Thank you.

parry2k
Super User
Super User

@XhevahirMehalla you can use runningvalue  function RunningValue function in a paginated report - Microsoft Report Builder & Power BI Report Builder | M...



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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