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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ckolahi
Frequent Visitor

cumulative total with unique values

Hi guys

Here's the data set

 

ckolahi_0-1661976075961.png

 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

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

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:

yingyinr_0-1662363722446.png

 

(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:

yingyinr_2-1662363822115.png

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

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:

yingyinr_0-1662363722446.png

 

(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:

yingyinr_2-1662363822115.png

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.