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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Cumulative Running Total

Hello, 

 

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

xRTP_0-1659386413278.png

 

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

xRTP_1-1659386527872.png

 

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!

 

7 REPLIES 7
TomMartens
Super User
Super User

Hey @Anonymous ,

 

Try this measure

measure =
var currenterrors = 
calculate( sum( 'yourtable'[# errors] ) )
return
calculate(
sumx(
filter( 'your table'
, 'yourtable'[#errors} >= currenterrors )
)
, 'yourtable'[#errors}
)
, all('yourtable'[test]
)


Hopefully, this provides what you are looking for.
If not provide sample data, and describe the expected result based on the data you provide.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

@TomMartens 

Hello im getting this error 

xRTP_0-1659393101378.png

 

Hey @Anonymous .

 

deleted the leading bracket in line 8.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

@TomMartens 

Hello, the error was removed and new error exist lol why im getting this error on visual

xRTP_1-1659395202806.png

Here is the code 

 

xRTP_0-1659395167314.png

 

Hey @Anonymous ,

 

hit see details and provide the information.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hey @Anonymous ,

 

replace the curly brace in line 7 and 9 with square bracket.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

@TomMartens 

 

Hello, yes already replace the curly braces but still getting no visual as error

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors