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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AnaPiedade
Regular Visitor

Running total not working - skips some values

I am trying to do a running total from an amount column, but for some reason sometimes I get the same value on the running total column (as in the pictures). I have tried a million things and nothing seems to work. I am completely new at Power BI.Annotation 2020-06-30 151938.png

 

These are my measures:

TotalInvoiced(€) = SUM(Table[Invoiced Amount(€)])

 

Spend RunningTotal =
IF(
    NOT(ISBLANK([TotalInvoiced(€)])),
    CALCULATE(
        [TotalInvoiced(€)],
        FILTER(
            ALL(Table[Vendor]),
            SUM(Table[Invoiced Amount(€)]) <= [TotalInvoiced(€)] )))

 

What am I doing wrong?

1 REPLY 1
Anonymous
Not applicable

Running totals are usually written for the time dimension, not any other. If you want to write a RT against a different dimension, then you have to have a sort order defined. For any particular cell in your table, The FILTER in your formula filters vendors whose Invoiced Amount is less than or equal to the current vendor's Invoiced Amount. This, of course, will not correspond to the order of vendors.

Best
D

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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