Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Beginning Balance

Hi, Do you know how to calculate beginning balance in power bi?

  • 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] )
        )
    )

1 Reply

  • 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] )
        )
    )