Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, Do you know how to calculate beginning balance in power bi?
Solved! Go to Solution.
Hi @Anonymous,
It depends on your data model. If I were to calculate the balance sheet value, I'd use a measure similar to below:
Balance Sheet Value =
CALCULATE (
SUM ( Fact[Value] ),
FILTER (
ALL ( DatesTable ),
DatesTable[DateColumn] <= MAX ( DatesTable[DateColumn] )
)
)And for the beginning balance, that would be:
Balance Sheet Value =
CALCULATE (
SUM ( Fact[Value] ),
FILTER (
ALL ( DatesTable ),
DatesTable[DateColumn] < MIN ( DatesTable[DateColumn] )
)
)
Hi @Anonymous,
It depends on your data model. If I were to calculate the balance sheet value, I'd use a measure similar to below:
Balance Sheet Value =
CALCULATE (
SUM ( Fact[Value] ),
FILTER (
ALL ( DatesTable ),
DatesTable[DateColumn] <= MAX ( DatesTable[DateColumn] )
)
)And for the beginning balance, that would be:
Balance Sheet Value =
CALCULATE (
SUM ( Fact[Value] ),
FILTER (
ALL ( DatesTable ),
DatesTable[DateColumn] < MIN ( DatesTable[DateColumn] )
)
)
| User | Count |
|---|---|
| 51 | |
| 35 | |
| 29 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 57 | |
| 39 | |
| 22 | |
| 21 |