cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xRTP
Helper III
Helper III

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 @xRTP ,

 

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

@TomMartens 

Hello im getting this error 

xRTP_0-1659393101378.png

 

Hey @xRTP .

 

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

@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 @xRTP ,

 

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 @xRTP ,

 

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

@TomMartens 

 

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

Helpful resources

Announcements
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.

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.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors