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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Cummulative sum in a column

Hi,
1) I have Grand Total column as below, from that i need to get % column value listed below.
Grand Total 656,306
to get 30% i need to do  197,829/656,306 = 30%
to get 13% i need to do 84,635/656,306 = 13% ....so on 

2)How can i get the cummulative sum from the %column?
1st row values remains same as 30%.
2nd row column value - 30%+13% = 43%
3rd row column value - 30+11+13 = 54% etc...

Please advise 

 

Grand Total656,306

%**bleep**
197,82930%30%
84,63513%43%
69,12811%54%
51,9328%61%
45,2107%68%
41,3356%75%
35,8155%80%
26,9624%84%
13,7812%86%
13,4172%88%
9,7521%90%
9,7501%91%
9,4561%93%
9,3781%94%
9,1111%96%
8,3941%97%
5,5771%98%
5,1911%99%
4,3731%99%
2,9760%100%
1,8240%100%
4800%100%
656,306 
9 REPLIES 9
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1665406235592.png

 

Percentage measure: =
VAR _qty =
    SUM ( Data[Quantity] )
VAR _allqty =
    CALCULATE ( SUM ( Data[Quantity] ), REMOVEFILTERS () )
RETURN
    DIVIDE ( _qty, _allqty )

 

Cumulate percentage measure: =
VAR _qty =
    SUM ( Data[Quantity] )
VAR _cumulate =
    SUMX (
        FILTER ( ALL ( Data[Quantity] ), Data[Quantity] >= _qty ),
        [Percentage measure:]
    )
RETURN
    _cumulate

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Thank you so much for the Quick Response
Cumulative sum is not working for me 
if you can see Percentage % and Cummative Percentage values both are same. 
I have used the Measures which you shared. but values are same 
Please help ?

LikhithaVG123_0-1665408242307.png

 

Hi,

Could you please share your sample pbix file's link here? And then I can try to look into it to come up with a more accurate solution.

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Sorry i cant share the pbix file it has huge sensitive data. But i can share the screenshot of the measure which i am using.

LikhithaVG123_1-1665410412688.png

 

 

Hi,

I cannot know the column name in your visualization that is placed in the left side of it.

Please try something like below.

Cumulate percentage measure: =
VAR _percentage = [Percentage measure:]
VAR _cumulate =
    SUMX (
        FILTER (
            ALL ( 'TableName'[somethinglikeindexcolumn] ),
            [Percentage measure:] >= _percentage
        ),
        [Percentage measure:]
    )
RETURN
    _cumulate

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi,
I am using the Country in left column of the visual

Please try the below whether it suits your requirememt.

Cumulate percentage measure: =
VAR _percentage = [Percentage measure:]
VAR _cumulate =
    SUMX (
        FILTER ( ALL ( 'TableName'[country] ), [Percentage measure:] >= _percentage ),
        [Percentage measure:]
    )
RETURN
    _cumulate

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

When i use country column in the measure i am getting like below cummulative is not coming in correct way. Please see below

Cumulate percentage measure: =
VAR _percentage = [Percentage %]
VAR _cumulate =
    SUMX (
        FILTER (
            ALL ( 'DB 15092022_1'[country]),
            [Percentage %] >= _percentage
        ),
        [Percentage %]
    )
RETURN
    _cumulate

LikhithaVG123_0-1665411930147.png

 

Hi,

May I ask, do you want to cumulate by country code alphabetical order? Or, by QTY descending order?

I think the measure is showing cumulate percentage by QTY descending order.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.