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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
xRTP
Helper V
Helper V

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors