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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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