Forum Discussion
Rolling Balance Sheet Balance
- 6 years ago
Hi tcasekpi ,
You could create a date table as a date filter. Then refer to the following measure:
Measure = VAR a = CALCULATE ( MAX ( 'Date'[Date] ), ALLSELECTED ( 'Date' ) ) VAR b = EOMONTH ( a, -12 ) RETURN CALCULATE ( SUM ( 'Table'[Amount] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[Account] ), 'Table'[End of Month] <= MAX ( 'Table'[End of Month] ) && SELECTEDVALUE ( 'Table'[End of Month] ) <= a && SELECTEDVALUE ( 'Table'[End of Month] ) >= b ) )Here is my test file for your reference.
Thank you for the reply. This causes a circular dependency in my table. I do not know how to resolve.
are you creating it as a column or a measure? you should be doing it as a measure, also make sure you have a valid date table in your model
- tcasekpi6 years agoNew Member
I created it as a measure and use a dates table. What I am ultimately trying to do is take a transaction table and convert it to show 12 month rolling balance sheet balances based on a date slicer.
I see a number of examples that work for revenue accounts but none for balance sheet cumulative totals.
- amitchandak6 years ago
Super User
tcasekpi , how to use the closing balance, refer
https://www.facebook.com/watch/?v=343509629992272
Make sure you use date calendar