Forum Discussion

gtamir's avatar
gtamir
Post Patron
8 years ago
Solved

CumulativeTotal by Index

Hi

I am trying to create a cumulative column from the Total and Index column in the table SalesByCustomer.

What is wrong in my formula?

Thanks Giora

4 Replies

  • popov's avatar
    popov
    Resolver III

    Hello, gtamir
    Correct formula below

    Cumulative Total =
    SUMX (
        FILTER (
            SalesByCustomer,
            SalesByCustomer[Index] <= EARLIER ( SalesByCustomer[Index] )
        ),
        SalesByCustomer[Total]
    )

    • gtamir's avatar
      gtamir
      Post Patron

      Thanks but it has a problem.

       

      • popov's avatar
        popov
        Resolver III
        Do you create calculated column?