Forum Discussion

Guustc's avatar
Guustc
Helper I
10 years ago
Solved

Totalling Ledger NAV

I think the title is not clear at all, but it is difficult to give my problem 'a name'.   I have the following table (an example, of course there is more data in each row)    GL Account Number - ...
  • v-sihou-msft's avatar
    v-sihou-msft
    10 years ago

    Guustc

     

    According to your example, we need to update the formula of Kostensoort column as below.

     

     

    Kostensoort =
    VAR Name_Index =
        IF (
            ISBLANK ( Grootboekrekening[Naam] ),
            CALCULATE (
                MIN ( Grootboekrekening[Index] ),
                FILTER (
                    Grootboekrekening,
                    Grootboekrekening[Index] > EARLIER ( Grootboekrekening[Index] )
                        && Grootboekrekening[Naam] <> BLANK ()
                )
            ),
            Grootboekrekening[Index]
        )
    RETURN
        (
            LOOKUPVALUE ( Grootboekrekening[Naam], Grootboekrekening[Index], Name_Index )
    )

     

     

    Regards,