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
YPBI
Frequent Visitor

Running Total % on Measure

Hi - I want to create running total column based on the values in the % Scaled Scores column. The probem is that the said column is a measure, so solutions that use SUM won't work. What would the DAX for the running total look like?

 

 

YPBI_1-1697135562776.png

 

12 REPLIES 12
Dangar332
Super User
Super User

hi, @YPBI 

try below measure
adjust your table name

result =
var a = CALCULATE(SUM('Table'[scaled score]),KEEPFILTERS('Table'[sort ss grouping]<=MAX('Table'[sort ss grouping])),REMOVEFILTERS('Table'[scaled scores grouping]))
var b = CALCULATE(SUM('Table'[scaled score]),REMOVEFILTERS('Table'[scaled scores grouping]))
return
DIVIDE(a,b)
 
Dangar332_0-1697390442160.png
and YAH! here you use highest sort ss grouping value for low range of scaled scores grouping so you get desc answer 
Dangar332_1-1697391338811.png

 

 

you can download .pbix file of this solution click Here 

 

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Would love to share but the dataset contains all sorts of sensitive information...

 

These are the relevant columns at play though:

 

YPBI_1-1697383701660.png

 

% Scaled Scores measure:

 

% Scaled Scores = 
DIVIDE(
    COUNT(TestData[Scaled Score]),
        CALCULATE(
            COUNT(TestData[Scaled Score]),ALLSELECTED()))

 

Hi,

Please find attached the PBI file.

Hope this helps.

Ashish_Mathur_0-1697411682660.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the responses, however the end result needs to look like this:

 

YPBI_0-1697456562087.png

The running total should cumulatively sum each percentage in the % Scaled Score column.

 

@Ashish_Mathur @Dangar332 @parry2k 

That is exactly what my solution does.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi -

 

I think the problem is that the SS measure you've created is a sum. It needs to be a count, as the Count of Scaled Scores column is basically the number of students who fell within that grouping. I changed the SUM to COUNT but then the Running total SS measure doesn't work...

parry2k
Super User
Super User

@YPBI you can try something like this:

 

RT Measure = 
CALCUALTE ( 
    [Existing Measure], 
    FILTER ( 
          ALL ( 'Grouping Table' ), 
          'Grouping Table'[Id] <= MAX ( 'Grouping Table'[Id] ) 
    )
)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

YPBI
Frequent Visitor

That doesn't seem to get me the desired result.

 

 

RT Measure = 
CALCULATE(  
    [% Scaled Scores], 
    FILTER ( 
          ALL ( TestData[Sort SS Grouping]), 
          'TestData'[Sort SS Grouping] <= MAX ( TestData[Sort SS Grouping]) 

 

 

YPBI_0-1697383014676.png

 

I tried swapping the Sort SS Grouping with Scaled Scores Grouping and got this...first two rows sum correctly

 

YPBI_0-1697383465264.png

 

 

@YPBI listen to @parry2k.  He's one of the best Super Users and has helped me numerous times!  🙂

parry2k
Super User
Super User

@YPBI it is possible if you have a number column to sort scaled scores grouping column



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

YPBI
Frequent Visitor

I actually have one already and the Scaled Scores Grouping is sorted by that column...how does that fit in here?

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