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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

how to create cumulative% in pareto

Hi, I want to create a paerto chart use line&bar visual, the x-asix is month, and I don't know how to create a cumulative% based on month value, do you have any ideas? Thank you.

null_0-1663816027533.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your dataset.

 

Jihwan_Kim_0-1663817313640.png

 

Value cumulate percentage by month: =
VAR _cumulatemonthvalue =
    CALCULATE (
        [Value measure:],
        FILTER ( ALL ( Data ), Data[Month] <= MAX ( Data[Month] ) )
    )
VAR _allmonthsvalue =
    CALCULATE ( [Value measure:], ALL () )
RETURN
    DIVIDE ( _cumulatemonthvalue, _allmonthsvalue )

 

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your dataset.

 

Jihwan_Kim_0-1663817313640.png

 

Value cumulate percentage by month: =
VAR _cumulatemonthvalue =
    CALCULATE (
        [Value measure:],
        FILTER ( ALL ( Data ), Data[Month] <= MAX ( Data[Month] ) )
    )
VAR _allmonthsvalue =
    CALCULATE ( [Value measure:], ALL () )
RETURN
    DIVIDE ( _cumulatemonthvalue, _allmonthsvalue )

 

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors