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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

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!

Top Solution Authors