Forum Discussion
Cumulative Total Between Two Columns Where The First Set to Zero
- 5 years ago
DA12345 , Try measure like
Opening balanace = calculate(sum(Table[Invoice]) - sum(Table[TotSubs]) , filter(allselected('Date'), Date[Date] < max(Date[Date])))
Closing Balance = calculate(sum(Table[Invoice]) - sum(Table[TotSubs]) , filter(allselected('Date'), Date[Date] <= max(Date[Date])))if closing balance is already a column with number
Opening balanace
= CALCULATE(SUM(Table[closing balance ]),previousday('Date'[Date]))
DA12345 , Try measure like
Opening balanace = calculate(sum(Table[Invoice]) - sum(Table[TotSubs]) , filter(allselected('Date'), Date[Date] < max(Date[Date])))
Closing Balance = calculate(sum(Table[Invoice]) - sum(Table[TotSubs]) , filter(allselected('Date'), Date[Date] <= max(Date[Date])))
if closing balance is already a column with number
Opening balanace
= CALCULATE(SUM(Table[closing balance ]),previousday('Date'[Date]))
- DA123455 years agoFrequent Visitor
Thank you. This works to a limited degree however, I have a date slider on the page that influences that table, if the earliest date range is not selected in that range, It doesn't present a correct closing balance based on what come before.
- DA123455 years agoFrequent Visitor
In my case, this I replaced ALLSELECTED() with ALL()