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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
XhevahirMehalla
Helper IV
Helper IV

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.