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

In running total add by ascending by values

Hello, 

 

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

xRTP_0-1660204056710.png

 

 

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

xRTP_1-1660204056294.png

Here's the code i've tried:

 

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

 

But it show's this 

 

xRTP_0-1660213748876.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!

1 REPLY 1
amitchandak
Super User
Super User

@xRTP , How to create measure based running total discussed by Matt in this blog - https://exceleratorbi.com.au/pareto-analysis-in-power-bi/

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.