cancel
Showing results for
Did you mean:
Highlighted
New Member

## Cumulative total for pareto

Hi everyone!

I've read a lot of posts on this topic but I am still missing something.

I have created a very simple table called 'Data':

 Product Total Sales BA 1000 CWA 10000 DIN 8000 ENC 2000

Then the following calculated colums:

Rank = RANKX(Data;Data[Total Sales])

Cumulated = CALCULATE

(
SUM(Data[Total Sales]);
FILTER(ALL(Data[Rank]);Data[Rank] <= MAX(Data[Rank]))
)

However the result in Cumulated is the exact same values I have in Total Sales.

What am I missing?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III

## Re: Cumulative total for pareto

Hi @marcosim ,

If you are making a calculated column for the cumulative you should redo your formula to:

``````Cumulated = CALCULATE

(
SUM(Data[Total Sales]);
FILTER(ALL(Data);Data[Rank] <= EARLIER(Data[Rank]))
)``````

Regards

Miguel Félix

Proud to be a Datanaut!

Check out my blog: Power BI em Português

3 REPLIES 3
Super User I

## Re: Cumulative total for pareto

You should use ALL(TABLE) instead of just the column.

``Measure = CALCULATE(SUM('Table'[Total Sales]),FILTER(ALL('Table'),'Table'[Rank]<=MAX('Table'[Rank])))``

If it helps, mark it as a solution

Kudos are nice too.

Super User III

## Re: Cumulative total for pareto

Hi @marcosim ,

If you are making a calculated column for the cumulative you should redo your formula to:

``````Cumulated = CALCULATE

(
SUM(Data[Total Sales]);
FILTER(ALL(Data);Data[Rank] <= EARLIER(Data[Rank]))
)``````

Regards

Miguel Félix

Proud to be a Datanaut!

Check out my blog: Power BI em Português

Super User IV

## Re: Cumulative total for pareto

Refer

https://community.powerbi.com/t5/Desktop/Running-Total-on-a-non-date-column/td-p/44470

https://community.powerbi.com/t5/Desktop/Cumulative-sum-without-date-field/td-p/102967

Also try if this can work

``````Cumulated = CALCULATE
(
SUM(Data[Total Sales]);
FILTER(ALL(Data[product]);Data[product] <= earlier(Data[product]))
)``````

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin

Announcements

#### New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

#### ‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

#### Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

#### Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors