Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
gtamir
Post Patron
Post Patron

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

ScreenHunter_073.jpg

1 ACCEPTED SOLUTION

Thanks but it has a problem.

 

ScreenHunter_074.jpg

View solution in original post

4 REPLIES 4
popov
Resolver III
Resolver III

Hello, @gtamir
Correct formula below

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

Thanks but it has a problem.

 

ScreenHunter_074.jpg

Do you create calculated column?

Ah ha. Now I fixed it. Thanks

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.