Forum Discussion
Calculating Opening / Closing Balance
eduardomarchesi , If this is recursive calculation like excel, that is not possible.
If it can be cumulative
Opening = CALCULATE(SUM(Sales[Amount]),filter(all('Date'),'Date'[date] <Min ('Date'[date])))
Closing = CALCULATE(SUM(Sales[Amount]),filter(all('Date'),'Date'[date] <= Max('Date'[date])))
Or you can consider
openingbalancemonth, openingbalancequarter, openingbalanceyear: https://youtu.be/6lzYOXI5wfo
Power BI Allocating Targets- closingbalancemonth, closingbalancequarter, closingbalanceyear:https://youtu.be/yPQ9UV37LOU
- eduardomarchesi3 years agoRegular Visitor
Hi amitchandak,
Thank you very much for your help!!
I've tried your suggestions but with no success.
As you can see below, I have got the previous values of "Closing Balance" and associated with "Opening Balance", so, this Opening Balance I need incluide in the formule to "Closing Balance" as you can check in the screen from excel example below.
PowerBI result:
Excel example:
Is it possible I send you my example and my data to take look and understand better the sctructure?
** I could not see the option to attach files here!!
Rgds
Eduardo
- PBISunK1 year agoFrequent Visitor
I know this is an old post but wnating to see if this was successfully handled in the code? I have exactly same requirement and dealing with circular dependency issues
- Ashish_Mathur1 year agoSuper User
Hi,
I have solved a similar question in the attached files.
Hope this helps.