Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

In running total add by ascending by values



I need help on cumulative running total, it adds on acsending order (alphabetical order) base on column test




The thing is i want to add first is the biggest number down to the lowest under # Errors column


Here's the code i've tried:


TestCumulative =
var currenterrors =
calculate( sum( 'Raw'[test]) )
filter( 'Raw', 'Raw'[Errors]  >= currenterrors ),


But it show's this 




Note: All 3 columns are just 1 column, 1st column is Test, 2nd column is count of Test and third is the Cumulative of Test.

Appreciate your answers!

Super User
Super User

@xRTP , How to create measure based running total discussed by Matt in this blog -

Power BI Features || Datamarts: || Field Parameters :
Time Intelligence Decoded : || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Top Solution Authors
Users online (963)