Forum Discussion

nadav50's avatar
nadav50
Regular Visitor
9 years ago
Solved

Accumulated balance

hi,

can i get help?

i want to add accumulated column  per client like the  next pic :

 

  • Hi nadav50,

     

    Please add a calculated column using below formula:

    balance_by_client =
    CALCULATE (
        SUM ( 'Accumulated balance'[sale] ),
        ALLEXCEPT ( 'Accumulated balance', 'Accumulated balance'[Client] ),
        'Accumulated balance'[date] <= EARLIER ( 'Accumulated balance'[date] )
    )

    If you have any other question, please feel free to ask.

     

    Thanks,
    Yuliana Gu

2 Replies

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi nadav50,

     

    Please add a calculated column using below formula:

    balance_by_client =
    CALCULATE (
        SUM ( 'Accumulated balance'[sale] ),
        ALLEXCEPT ( 'Accumulated balance', 'Accumulated balance'[Client] ),
        'Accumulated balance'[date] <= EARLIER ( 'Accumulated balance'[date] )
    )

    If you have any other question, please feel free to ask.

     

    Thanks,
    Yuliana Gu

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,

       

      I was wondering if it is possible to calculate the last column in yellow in power bi?

       

      I am after the resul which is found in the final column (cumulation), as an accumulation calculation.Total number is 832.

       

       

      Ant fadder donasjoner (Kontakt)Count of Kundenummer (Kontakt)Cumulation
      0389443
      1120323
      285238
      374164
      430134
      531103
      63568
      72642
      81626
      91313
      10103
      1112
      3011
      3610
      Total832 

       

       

      Thank you for your helo :)