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
Anonymous
Not applicable

Cumulative Percent

I am trying to do a parento chart in Power BI and all of the guides I find seem very complicated. Can I just create a new measure where I calculate the cumulative percentage and insert that measure as a Line value in my graph to create a parento chart or is there a benefit to creating a new table or chart?

 

If so, how can I calculate the cumulative percentage based on a distinct count? I have an image 
to help, with the values that I need. Please note that ID# 4 has 2 of the same discard reasons, but I only wish to count it once (this refers back to my main spreadsheet with a lot of data)

 

https://imgur.com/XK025bI

1 ACCEPTED SOLUTION

Looks like you've missed a parens.

CumulativeCount = CALCULATE([CountMeasure],FILTER(ALL('Table1'), 'Table1'[Referral Date] <= MAX('Table1'[Referral Date]) ))

It's helpful if you tell us what error you're getting, or if you're getting an unexpected result when you say that a measure isn't working

View solution in original post

4 REPLIES 4
Cmcmahan
Resident Rockstar
Resident Rockstar

You can definitely do this with a measure!

You need two things for a cumulative calculation.  Data you're aggregating, and a way to determine how the data is sorted.   You want to aggregate distinct counts which is great, but how does Power BI know that Serology comes before Culture, which comes before Time out?

 

CountMeasure = COUNTROWS(GROUPBY('Table1', [Patient ID], [Discard]))
CumulativeCount = CALCULATE([CountMeasure],FILTER(ALL('Table1'),<INSERT ORDERING LOGIC HERE>)
Cumulative % = [CumulativeCount] / CALCULATE([CountMeasure], ALL('Table1'))

The only thing left to do is to figure out how to tell PowerBI what order you want to do the sum in.  When your categories can't be ordered correctly by themselves (like dates can), then this is usually done by creating some sort of index on a separate lookup table or using the sort by another column functionality.

Anonymous
Not applicable

Ok, so for the ordering logic, I want to sort it by the Referral date. 

 

I have the rest of the dashboard already grouped by date, so I was unsure if I had to include it in the logic. So I have to put the filter in for my CumulativeCount equation?

 

My logic isn't working

 

CumulativeCount = CALCULATE([CountMeasure],FILTER(ALL('Table1', 'Table1'[Referral Date] <= MAX('Table1'[Referral Date])))
 
 

 

 

 

Hi @Anonymous ,

The suggestion of Cmcmahan should be helpful.

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please share more data sample which should inclue the Referral Date so that we could help further on it.

Best  Regards,

Cherry

 

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

Looks like you've missed a parens.

CumulativeCount = CALCULATE([CountMeasure],FILTER(ALL('Table1'), 'Table1'[Referral Date] <= MAX('Table1'[Referral Date]) ))

It's helpful if you tell us what error you're getting, or if you're getting an unexpected result when you say that a measure isn't working

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.