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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Cash Flow - Opening Balance and End Balance

Hello,

I have a table with payment and receipt details. Payments and receipts can be repeated, but in the table they are added up.

 

I have a column repeats with the first bank balance.

 

I would like to know, in an easy way how to get a measure for opening balance with the first value of the bank balance field. And onwards, take the final balances by adding receipts and subtracting payments. There would be two fields, one for opening balance, and ending for previous days, and the other for ending balance for each day. Example:

 

cashflow.png

Below is a file with the same example mentioned in the image for a better understanding and solution.

 

Regards,

Bruno

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

13 REPLIES 13
Anonymous
Not applicable

Here is the file with a few tries. The problem is with more than one date, not just one date.

 

https://1drv.ms/u/s!Avwq0_QZmBwmg-wkuZekbiHKWE0XLg?e=uXfRG4

 

Regards,

Bruno

What does the Bank Balance column denote?  Is 150 (the first entry in the Bank Balance column) the opening balance?  Reshare an "easy to understand" dataset.  I will not be working off your formulas so please delete your workings.  Just let 2 tables remain - Calendar and sheet1.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

The bank balance column is the opening balance. It is repeated, but I only need the value once. After filtering the period (which is the current day forward), the opening balance takes this first amount.

Follow link with clean file.

 

https://1drv.ms/u/s!Avwq0_QZmBwmg-wmA1VNkG1FOgIEzg?e=lbCpse

 

Regards,

Bruno

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur. This has helped me a lot. Only in my report only the first week does not work. Only from the second week do the formulas seem to work. Do you have an idea how this can be done?

Hi,

Share some data, explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the reply. Below are the measures I used and the result in a matrix.

 

Openingbalance = if(ISBLANK([Values]),BLANK(),MIN('Banksaldo'[Amount])+[Values till date])

 

Values = [Inkomsten]-[Uitgaven]

 

Values till date = CALCULATE([Values],DATESBETWEEN(Datum[Date],MINX(ALL('Datum'),'Datum'[Date]),MIN(Datum[Date])-1))

 

Closing balance = [openingbalance]+[Values]

 

Wessie_0-1680069870432.png

The results are shown per week. The weeks are determined by a date slicer.

I cannot understand anything there.  Someone who does will help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

It was just what I needed. Thanks a lot for the help.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

I sent the wrong formula. In this example the image is correct.

 

cashflow2.png

 

Regards,

Bruno

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

The End Balance on 21/05/2021 should have been -400.  Likewise, the opening balance on 22/05/2021 should have been -400.  Am i correct?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.