Forum Discussion

ckolahi's avatar
ckolahi
Frequent Visitor
4 years ago
Solved

cumulative total with unique values

Hi guys

Here's the data set

 

 As you can see the last column is unique value.

I would like basically to have a cumulative sum by month (1st column) of this Payout_Monthly column

 Cumulative sum (Jan/Feb) = 1412,14+1412,14 = 2824 (YTD FEB)

 

any ideas

Thanks

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi,@ ckolahi

    According to your description, you want to deduplicate according to the [Month] field and find the sum of [Payout_Monthly]. Right?

    Here are the steps you can follow:

    (1)This is my test data:

     

    (2) We can create a measure:  Cumulative sum

    Cumulative sum =
    SUMX (
        SUMMARIZE ( 'Test', 'Test'[Month], 'Test'[Payout_Monthly] ),
        [Payout_Monthly]
    )

    (3)Then we can test in the card and it can meet your need:

    If this method does not meet your needs, you can provide us your sample data without sensitive data, or detailed input and output sample data, so that we can better help for you.

    Best Regards

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,@ ckolahi

    According to your description, you want to deduplicate according to the [Month] field and find the sum of [Payout_Monthly]. Right?

    Here are the steps you can follow:

    (1)This is my test data:

     

    (2) We can create a measure:  Cumulative sum

    Cumulative sum =
    SUMX (
        SUMMARIZE ( 'Test', 'Test'[Month], 'Test'[Payout_Monthly] ),
        [Payout_Monthly]
    )

    (3)Then we can test in the card and it can meet your need:

    If this method does not meet your needs, you can provide us your sample data without sensitive data, or detailed input and output sample data, so that we can better help for you.

    Best Regards