Forum Discussion

mq2020's avatar
mq2020
Helper III
6 years ago
Solved

Opening Balance for each Entity

I have opening balance calculation which currently works on total levels but when I drill down by Entity it's not working correctly (it still shows the total opening balance for all entities).

I think it has to do with the FILTER(ALL()) in my formula but I am not sure how to modify it to allow dinamic change based on the Entity selected.

 

This is the formula I am using at the moment:

 

Opening Balance =
var mindate =
MIN(Transactions[Day])
RETURN
CALCULATE(
[Amount £],
FILTER(ALL(Transactions),Transactions[Day]<mindate)
)

2 Replies