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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Syndicate_Admin
Administrator
Administrator

Measure to accumulate sum of % of participation

Hello Community,

I have tried to create a measure to add to my visual type table where I want to accumulate the percentage of capital participation per client, the table is ordered from client with greater capital to client with less capital, and I already have a mendida that brings me the % of participation.

% Capital = DIVIDE(SUM('Base Sectors'[Capital]),CALCULATE(sum('Base Sectors'[Capital]),ALLSELECTED('Base Sectors'),'Base Sectors'[Cut]=.max(DimCalendario[Cut])),0)

This is the measure that I would like to accumulate

WilliamForero_0-1697038904866.png

I have tried this formula

Cumulative % = CALCULATE(DIVIDE(SUM('Base sectors'[Capital]),CALCULATE(sum('Base sectors'[Capital]),ALLSELECTED('Base Sectors'),'Base Sectors'[Cut]=.max(DimCalendar[Cut])),0),FILTER(ALLSELECTED('Base Sectors'),'Base Sectors'[NAME] <- VALUES('Base Sectors'[NAME])))
but it generates error for me
3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin

with this measure have how result '1' for all the rows

WilliamForero_0-1697041423654.png

i need to accumulate the '% Capital' column

Anonymous
Not applicable

Hi @WilliamForero ,

You can update the measure [Cumulative %] as below and check if that is what you want.

Cumulative % =
VAR _culvalue =
    CALCULATE (
        SUM ( 'Base sectors'[Capital] ),
        FILTER (
            ALLSELECTED ( 'Base Sectors' ),
            'Base Sectors'[Cut] <= MAX ( DimCalendar[Cut] )
        )
    )
VAR _all =
    CALCULATE ( SUM ( 'Base sectors'[Capital] ), ALLSELECTED ( 'Base Sectors' ) )
RETURN
    DIVIDE ( _culvalue, _all, 0 )

If the above one can't help you get the expected result, please provide some raw data in your table 'Base sectors' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

amitchandak
Super User
Super User

@Syndicate_Admin , Try like

 

% Capital = Sumx( Values(DimCalendario[Cut]) , calculate( DIVIDE(SUM('Base Sectors'[Capital]),CALCULATE(sum('Base Sectors'[Capital]),
filter(ALLSELECTED(DimCalendario),DimCalendario[Cut]=max(DimCalendario[Cut]))))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.